[issue9299] os.makedirs(): Add a keyword argument to suppress "File exists" exception

2010-07-27 Thread Ray.Allen
Ray.Allen added the comment: I updated the patch. Now the patch: suppress the OSError if and only if the target directory with the same mode as we specified already exists. -- ___ Python tracker _

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-27 Thread Florent Xicluna
Florent Xicluna added the comment: 1/ The AttributeError on unquote() is backward compatible with 2.6, 2.7 and 3.1. (issue 9301 is about backward compatibility) 2/ All the quote*/unquote* functions accept both str and bytes (except quote_from_bytes). I don't find a strong reason to change th

[issue8776] Bytes version of sys.argv

2010-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Using that approach would work on POSIX systems. Another problem I see is synchronizing the two. If some function strips arguments from sys.argv (because it has completed processing), sys.argvb would still keep the arguments. Of course, this could be fixed b

[issue7330] PyUnicode_FromFormat segfault

2010-07-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-27 Thread Ezio Melotti
Ezio Melotti added the comment: There are a couple of things that I don't like in the patch: 1) raising a TypeError with a proper message seems better than raising an AttributeError (maybe check if not isinstance(string, (str, bytes)): raise TypeError(...)?); 2) from the snippet I see in t

[issue8776] Bytes version of sys.argv

2010-07-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9389] Traceback: Exception Shows Code that's On-Disk (Not in memory)

2010-07-27 Thread R. David Murray
R. David Murray added the comment: Yes, when you change the code on disk, you must restart the Python interpreter in order for it to "see" those changes. And as I said, the source code is never held in memory, so the only source code the traceback can show is what is on disk. This is just h

[issue9315] The trace module lacks unit tests

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch, issue9315-trace-fix.diff, that fixes a py3k bug exposed by issue9315.1-py3k.patch tests. One of the 3.x changes that caused the failure was that frames now have a __doc__ attribute and cannot be distinguished from functions. I r

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

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: I like the idea of using the PEP 383 for hostnames, but I don't understand the relation with IDNA (maybe because I don't know this encoding). +this leaves IDNA ASCII-compatible encodings in ASCII +form, but converts any non-ASCII bytes in the hostname to the U

[issue1813] Codec lookup failing under turkish locale

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: There is also a locale normalization function in unicodeobject.c: normalize_encoding(). This function uses "if (ISUPPER(*e)) *l++ = TOLOWER(*e++);" which uses the Python, *locale-independent*, implementation of ctype. We should maybe use the ISUPPER / TOLOWE

[issue9246] os.getcwd() hardcodes max path len

2010-07-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18169/os_getcwd_buffer.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue9246] os.getcwd() hardcodes max path len

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: New version of the patch avoiding PyMem_*() functions to avoid a possible race condition (issue with the GIL). -- Added file: http://bugs.python.org/file18225/os_getcwd_buffer-2.patch ___ Python tracker

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: I fixed #6213 in 2.6 and 2.7, and so it's now possible to backport this fix to 2.6 => r83200 -- ___ Python tracker ___

[issue6213] Incremental encoder incompatibility between 2.x and py3k

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: > I'm not brave enough to commit it to 2.6 > (test_io in 2.6 doesn't use incremental encoders) Oh, I just remembered that I choosed to fix this issue to be able to backport #5006 to 2.6 :-) So r83199 is the incremental encoder fix for 2.6, and r83200 is the

[issue9389] Traceback: Exception Shows Code that's On-Disk (Not in memory)

2010-07-27 Thread Guy
Guy added the comment: I was running a script that I was editing, and, after making changes, the code wasn't reinterpreted, but listed the line that the "error" occured on (I had corrected the error on the file that was on disk, but yet, Python didn't reinterpret the code). "I'm guessing you

[issue6213] Incremental encoder incompatibility between 2.x and py3k

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: > The patch looks ok to me Ok, commited to 2.7 (r83198). > (I suppose you have tested it) I ran test_io which does test the incremental encoders. -- I'm not brave enough to commit it to 2.6 (test_io in 2.6 doesn't use incremental encoders). -- res

[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: I will open new issues for the two remaining patches. -- ___ Python tracker ___ ___ Python-bugs-list

[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: I tried the patch on my import_unicode branch and it doesn't work if the locale encoding is not ASCII (as the current code doesn't work if the locale encoding is not UTF-8, #8611). If Py_FileSystemUnicodeEncoding is NULL: PyUnicode_EncodeFSDefault() should us

[issue8776] Bytes version of sys.argv

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: You should read .encode(), not .decode() :-/ -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am adding MvL to nosy. Martin, I believe you are the ultimate authority on how to tokenize a unicode stream. -- nosy: +loewis ___ Python tracker _

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: David, What do you think about attached patch? Would that be a change in the "more" direction? -- Added file: http://bugs.python.org/file18224/issue1170.diff ___ Python tracker

[issue8776] Bytes version of sys.argv

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: "no byte-oriented representation of the command line is readily available." Why not using the following recipe? encoding = locale.getpreferredencoding() sys.argvb = [arg.decode(encoding, 'surrogateescape') for arg in argv] -- __

[issue8991] PyArg_Parse*() functions: reject discontinious buffers

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: Commited to 3.2 (r83197). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9389] Traceback: Exception Shows Code that's On-Disk (Not in memory)

2010-07-27 Thread R. David Murray
R. David Murray added the comment: Yes, this is the way it works. There is no copy of the lines kept in memory, the only lines that can be displayed in the traceback are the ones currently on disk. Although your speaking about a "script" is a bit confusing: if you are running a script from

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread R. David Murray
R. David Murray added the comment: Alexander: the "more or less" is on the "less" side when dealing with non-ASCII letters, I think. See my msg109292 and your own followups. -- ___ Python tracker

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-07-27 Thread STINNER Victor
STINNER Victor added the comment: I commited both patches to 3.2, but I splitted them in a different way: - r83191 "fixes" tests (remove implicit conversion) - r83195 removes the implicit conversion in ctypes So it's easier to review the commits and revert the second commit. -- resol

[issue7962] Demo and Tools need to be tested and pruned

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like turtle was not the best example for msg111682 because it is already in Lib and python -m turtle runs demo. I am not sure what the relationship between Demo/turtle and the turtle module is. -- _

[issue7447] Sum() doc and behavior mismatch

2010-07-27 Thread Ezio Melotti
Ezio Melotti added the comment: You could also use start=0 in the signature. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9378] Make python -m pickle do something useful

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r83188. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue9378] Make python -m pickle do something useful

2010-07-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> accepted stage: patch review -> commit review ___ Python tracker ___ ___ Python-bu

[issue7825] test_threadsignals leaks references

2010-07-27 Thread Florent Xicluna
Florent Xicluna added the comment: Now it's fixed for 2.7 with r83187. (thanks for the hint, Antoine) No issue on 3.x, AFAICT. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue6213] Incremental encoder incompatibility between 2.x and py3k

2010-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks ok to me (I suppose you have tested it). -- versions: -Python 3.2 ___ Python tracker ___ __

[issue7825] test_threadsignals leaks references

2010-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I haven't seen test_threadsignals leaking, either on 3.1 or 3.2. Was it a transient problem? Note that if you want for test-specific threads to end, you can use the reap_threads() utility from the test.support module. -- nosy: +pitrou ___

[issue7447] Sum() doc and behavior mismatch

2010-07-27 Thread Leonhard Vogt
Leonhard Vogt added the comment: another patch: - moved string case to first position, i think it's the most important. - reworded (shortened) list case. - wrapped for <80 caracter lines. still using itertools.itertools.chain.from_iterable as mentioned in previous message. I missed georgs use

[issue9172] zipfile.extractall always raises an OSError after successfully unzipping all files

2010-07-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc, ezio.melotti versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue9354] file_wrapper fails to provide getsockopt()

2010-07-27 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me. -- nosy: +merwok stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list

[issue9354] file_wrapper fails to provide getsockopt()

2010-07-27 Thread Łukasz Langa
Łukasz Langa added the comment: Patch updated to conform with the new test layout by Ezio Melotti. Implementation now also doesn't use assertions but regular exceptions. -- Added file: http://bugs.python.org/file18222/issue9354.diff ___ Python track

[issue1778410] removeTest() method patch for unittest.TestSuite

2010-07-27 Thread Michael Foord
Michael Foord added the comment: I'm sympathetic to the feature request. I think that the way tests identify themselves will change (improve) to accommodate the new extension machinery. I would like to leave this feature request open for the moment and revisit it again once the extension mach

[issue9354] file_wrapper fails to provide getsockopt()

2010-07-27 Thread Łukasz Langa
Changes by Łukasz Langa : Removed file: http://bugs.python.org/file18149/issue9354.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue3966] Win32ErrorTests from test_os.py

2010-07-27 Thread Éric Araujo
Éric Araujo added the comment: Thanks. I trust you that the other branches are fixed too; in future messages on other bugs reports, kindly include all revisions involved. I’ve learned that Roundup does not recognize an upper-case R (have I already said I hate implicit markup?). -- _

[issue3966] Win32ErrorTests from test_os.py

2010-07-27 Thread Mark Lawrence
Mark Lawrence added the comment: Éric please see R69364. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue9246] os.getcwd() hardcodes max path len

2010-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's not ok to call PyMem_* functions when the GIL is released. You should only release the GIL around the call to the system getcwd(). > I suppose that Python has a faster memory allocator, or that it has > better checks when compiled with pydebug? In this c

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-27 Thread Florent Xicluna
Florent Xicluna added the comment: For 3.2, there's some other corner cases which are not covered by the patch. Example: >>> unquote(()) >>> unquote({}) See attached patch. -- keywords: +patch stage: committed/rejected -> commit review status: closed -> open versions: +Python 3.2 -Pyt

[issue9378] Make python -m pickle do something useful

2010-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I haven't tested, but it looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9294] Dead code in Objects/object.c

2010-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! The patch was committed in r83184 (py3k) and r83185 (3.1). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-07-27 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4770] binascii module, inconsistent behavior: some functions accept unicode string input

2010-07-27 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed with r83182. -- assignee: -> flox resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.1 ___ Python tracker _

[issue1778410] removeTest() method patch for unittest.TestSuite

2010-07-27 Thread Éric Araujo
Éric Araujo added the comment: Michael, can you say if the feature request is accepted or rejected? -- nosy: +merwok stage: unit test needed -> status: pending -> open versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker

[issue3966] Win32ErrorTests from test_os.py

2010-07-27 Thread Éric Araujo
Éric Araujo added the comment: Nice catch Roumen. Mark, can you tell which revisions the bug was fixed in? (writing “rNNN” or “rev NNN” will generate appropriate links) Thanks. -- nosy: +merwok ___ Python tracker

[issue3966] Win32ErrorTests from test_os.py

2010-07-27 Thread Mark Lawrence
Mark Lawrence added the comment: Already fixed in 2.7, 3.1 and 3.2. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue7825] test_threadsignals leaks references

2010-07-27 Thread Florent Xicluna
Florent Xicluna added the comment: I did not commit the patch because I'm not sure it is the right approach. I need someone else to comment on this. -- ___ Python tracker ___ ___

[issue1776674] glob.glob inconsistent

2010-07-27 Thread Éric Araujo
Éric Araujo added the comment: Some bugs take a long time to get fixed. I agree that three years is not a good score, but this really needs a test in order to get closed or fixed, so I’m reopening. Maybe the OP or you could add a test? :) -- nosy: +merwok status: pending -> open versi

[issue1776674] glob.glob inconsistent

2010-07-27 Thread Mark Lawrence
Mark Lawrence added the comment: As no response to msg108627 I'll close this unless there are any objections. -- status: open -> pending ___ Python tracker ___ ___

[issue1778410] removeTest() method patch for unittest.TestSuite

2010-07-27 Thread Mark Lawrence
Mark Lawrence added the comment: As nobody has responded to msg53044 or msg108206 I'll close this unless there are any objections. -- status: open -> pending ___ Python tracker _

[issue1479626] Uninstall does not clean registry

2010-07-27 Thread Mark Lawrence
Mark Lawrence added the comment: Could one of our windows gurus coment on this please. -- nosy: +brian.curtin, tim.golden versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker

[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2010-07-27 Thread Mark Lawrence
Mark Lawrence added the comment: I think this could be sneaked into 3.2 if needed, but is it more work than the benefits actually deliver in the real world? -- stage: -> needs patch type: behavior -> feature request versions: +Python 3.2 ___ Python

[issue5136] Deprecating (and removing) "globalcall", "merge" and "globaleval"

2010-07-27 Thread Mark Lawrence
Mark Lawrence added the comment: Is it still possible to get this into 3.2 and have them remove in 3.3? -- type: -> feature request versions: +Python 3.2 -Python 2.7, Python 3.0 ___ Python tracker

[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.

2010-07-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the idea and quick reply. In view of the discussion, I'm going to reject the feature request. The trade-off in added API complexity isn't worth the benefit especially given that subclassing already provides an option: class Point(namedtuple('Po

[issue9392] 2.7 framework install doesn't create 2to3-2.7

2010-07-27 Thread Ronald Oussoren
New submission from Ronald Oussoren : Framework installs ensure that all tools and scripts are installed using versioned names (as well as the regular names) to make it easier to use multiple versions of python side by side. The 2.7 tree fails to create a versioned name of the 2to3 tool (whil

[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.

2010-07-27 Thread Anthony Foglia
Anthony Foglia added the comment: I could see adding a doc parameter to the collections.namedtuple. So that --- >>> Point = collections.namedtuple("Point", ("x", "y"), doc="My point class") >>> Point.__doc__ My point class --- (Or it could keep the currently created docstring and append the n

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jul 27, 2010 at 3:04 PM, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > +1 on get shlex to work better with Unicode. In 2.7.x? It more or less works in 3.x already. -- ___ Pyt

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 on get shlex to work better with Unicode. The core concepts of this module are general purpose and applicable to all kinds of text. -- nosy: +rhettinger ___ Python tracker

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Fernando Perez
Fernando Perez added the comment: On Tue, Jul 27, 2010 at 11:52, Alexander Belopolsky wrote: > Why do you expect shlex to work with unicode in 2.x? =A0The > documentation clearly says that the argument should be a string. > Supporting unicode is not an unreasonable RFE, but won't be considered

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jul 27, 2010 at 2:26 PM, Fernando Perez wrote: .. > Yes, sorry that I failed to mention the example I gave applies only to 2.x, > not to 3.x. Why do you expect shlex to work with unicode in 2.x? The documentation clearly says that the argument

[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.

2010-07-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm also -1 on dicts -- just use a second dict to hold docstings. Can you elaborate on your proposal for named tuples? Keep in mind that the API is already somewhat complex and should not be expanded lightly. Also, the whole point of named tuples is to a

[issue7330] PyUnicode_FromFormat segfault

2010-07-27 Thread Ron Adam
Changes by Ron Adam : -- nosy: +ron_adam title: PyUnicode_FromFormat segfault when using widths. -> PyUnicode_FromFormat segfault ___ Python tracker ___ _

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, your recommendation is to add one entry with the text suggested in the message. Given the name, the text seems reasonable. I will leave it to a doc person to format and apply. -- keywords: +patch stage: -> needs patch ___

[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Indeed, namedtuple auto-generates a doc-string and does not provide a way to customize it. It sounds reasonable to add a doc argument to namedtuple() function that would control __doc__ of the result. I am +0 on that. -- keywords: +easy _

[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: -1 on dicts You can simply subclass from dict to add docs. I think you can add docs to named tuples even without subclassing, but I need to check. -- nosy: +belopolsky versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3

[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.

2010-07-27 Thread Anthony Long
New submission from Anthony Long : I would like to add docstrings to dicts and named tuples. Dicts can be used to hold many different kinds of information, and docstrings would help to shed light on what the dict does to others. Named tuples also should have docstrings, since they can also inc

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Fernando Perez
Fernando Perez added the comment: Yes, sorry that I failed to mention the example I gave applies only to 2.x, not to 3.x. -- ___ Python tracker ___ _

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Fernando, Is this 2.7 only problem? In 3.2 >>> list(shlex.shlex('ab')) ['ab'] and bytes are not supported. >> list(shlex.shlex(b'ab')) Traceback (most recent call last): .. AttributeError: 'bytes' object has no attribute 'read' It is debatable wheth

[issue5109] array.array constructor very slow when passed an array object.

2010-07-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17157/issue5109.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue5109] array.array constructor very slow when passed an array object.

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am replacing issue5109.diff with an updated version (white space only changes). Does anyone object to this change or need more time to review? -- components: +Extension Modules -Library (Lib) resolution: -> accepted stage: patch review -> com

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-07-27 Thread jeff
jeff added the comment: On Thu, Jun 17, 2010 at 3:30 PM, Terry J. Reedy wrote: > In order for the doc maintainers to add an entry, someone knowledgeable must > write it. Your paragraph of explanation is a start, but more editing is > needed. > > Looking at dir(html.parser.HTMLParser) and help

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-27 Thread Greg Brockman
Greg Brockman added the comment: Thanks for the comment. It's good to know what constraints we have to deal with. > we can not, however, change the API. Does this include adding optional arguments? -- ___ Python tracker

[issue9299] os.makedirs(): Add a keyword argument to suppress "File exists" exception

2010-07-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: 'mkdir -p' prints error when target exists and is non-directory: $ cd /tmp $ touch file $ mkdir -p file mkdir: cannot create directory `file': File exists -- ___ Python tracker

[issue9299] os.makedirs(): Add a keyword argument to suppress "File exists" exception

2010-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, Arfrever brought that up and the question now is whether and how to revise it. -- ___ Python tracker ___ _

[issue9299] os.makedirs(): Add a keyword argument to suppress "File exists" exception

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > if *name* already exists as a directory with the specified > permissions, then do not raise an error. AFAICT, the code in the patch does not check permissions of the existing path(s) or even whether it is a directory or not. -- nosy: +belopols

[issue9299] os.makedirs(): Add a keyword argument to suppress "File exists" exception

2010-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I understand, this makes the change minimal: exist_ok means that if *name* already exists as a directory with the specified permissions, then do not raise an error. OK with me. Make sure doc and doc string say something like that. -- _

[issue5544] test_fileio fails on windows MSVC Assertion

2010-07-27 Thread Mark Lawrence
Changes by Mark Lawrence : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1886] Permit to easily use distutils "--formats=tar, gztar, bztar" on all systems

2010-07-27 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> tarek nosy: +merwok, tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue9387] Make python -m tkinter run tkinter demo

2010-07-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +benjamin.peterson, michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9387] Make python -m tkinter run tkinter demo

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jul 27, 2010 at 10:44 AM, Éric Araujo wrote: > > Éric Araujo added the comment: > > BTW, why is the sys.argv hackery necessary? > Does import or runpy or something force us to jump through hoops? I guess we need to ask benjamin.peterson or micha

[issue7962] Demo and Tools need to be tested and pruned

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jul 27, 2010 at 1:49 AM, Ronald Oussoren wrote: .. > What Apple does and doesn't ship is not important for this discussion. > I agree. I used Apple as an example because I happened to post from an Apple laptop. I am sure it is similarly hard to

[issue9387] Make python -m tkinter run tkinter demo

2010-07-27 Thread Éric Araujo
Éric Araujo added the comment: BTW, why is the sys.argv hackery necessary? Does import or runpy or something force us to jump through hoops? -- ___ Python tracker ___ __

[issue9384] Tkinter windows pop under the terminal in OSX

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jul 27, 2010 at 1:54 AM, Ronald Oussoren wrote: .. > Does "pydoc -k" also crash? Yes, it does: $ ./python.exe -m pydoc -k xyz lib2to3.fixes.fix_repr - Fixer that transforms `xyzzy` into repr(xyzzy). Segmentation fault but this is not an OSX spe

[issue9387] Make python -m tkinter run tkinter demo

2010-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed with changes suggested by Éric in r83177. -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-27 Thread Jesse Noller
Jesse Noller added the comment: You two are bigger users of this then I currently am (the curse/blessing of switching jobs), which is why I've let you hash it out. Let me point out: my goal is to deal with errors in a way which does not cause a total crash, a lockup, or hanging processes. Whe

[issue9390] Error in sys.excepthook on windows when redirecting output of the script

2010-07-27 Thread sorin
New submission from sorin : create a test.py with this content: print("test") run this file from command line by redirecting the output: test.py >out.log You get: close failed in file object destructor:

[issue7198] csv.writer

2010-07-27 Thread Andreas Balogh
Andreas Balogh added the comment: I encountered the same problem. It is unclear that using binary mode for the file is solving the problem. I suggest to add a hint to the documentation. -- nosy: +baloan ___ Python tracker

[issue1682942] ConfigParser support for alt delimiters

2010-07-27 Thread Łukasz Langa
Łukasz Langa added the comment: Updated the patch after review by Brian Curtin and Alexander Belopolsky. All remarks addressed, I think it's ready for inclusion. -- Added file: http://bugs.python.org/file18219/issue1682942.diff ___ Python tracker <

[issue1682942] ConfigParser support for alt delimiters

2010-07-27 Thread Łukasz Langa
Changes by Łukasz Langa : Removed file: http://bugs.python.org/file18216/issue1682942.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue9387] Make python -m tkinter run tkinter demo

2010-07-27 Thread Éric Araujo
Éric Araujo added the comment: The note seems fine to me. I’d used a semicolon, not a period, but that’s just me. You want to use `` to mark up code, not `. Aside: I’ve been told before not to do wrapping or whitespace changes unrelated to the object of my patch, to ease review. --

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-27 Thread Steven Bethard
Steven Bethard added the comment: It *would* be a backwards incompatible change. Currently, if I have a parser with both a "--foo" and a "--bar" option, and my user types "--foo --bar", they get an error saying that they were missing the argument to "--foo". Under your proposal, the "--foo" o

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-27 Thread Greg Brockman
Greg Brockman added the comment: > You can't have a sensible default timeout, because the worker may be > processing something important... In my case, the jobs are either functional or idempotent anyway, so aborting halfway through isn't a problem. In general though, I'm not sure what kinds o