[issue46473] importlib.metadata does not honor .egg-link files

2022-01-22 Thread Ben
New submission from Ben : When installing a package using --editable, pip creates a .egg-link file in your site-packages dir that points to the .egg-info metadata that by default exists along side the source that it was installed from. This worked just fine with the older pkg_resources

[issue46473] importlib.metadata does not honor .egg-link files

2022-01-22 Thread Ben
Ben added the comment: I should also add that the easy-install.pth file, which similarly contains a link to the source dir containing the .egg-info metadata, is also not processed to locate the necessary metadata. -- ___ Python tracker <ht

[issue46473] importlib.metadata does not honor .egg-link files

2022-01-22 Thread Ben
Ben added the comment: yes, the latest version of pip creates an .egg-info metadata dir at the level of the package src dir and .egg-link and easy-install.pth stubs in the site-packages dir (the contents of which are paths to the package src dir). The intent is that these links would be

[issue46473] importlib.metadata does not honor .egg-link files

2022-01-23 Thread Ben
Ben added the comment: https://github.com/python/importlib_metadata/issues/364 -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45274] Race condition in Thread._wait_for_tstate_lock()

2022-02-11 Thread Ben
Change by Ben : -- nosy: +bjs nosy_count: 6.0 -> 7.0 pull_requests: +29450 pull_request: https://github.com/python/cpython/pull/31290 ___ Python tracker <https://bugs.python.org/issu

[issue46726] Thread spuriously marked dead after interrupting a join call

2022-02-11 Thread Ben
Ben added the comment: This is a duplicate of https://bugs.python.org/issue45274 but the patch there did not fix it I've just added a PR there (or should it go here?) that (i think) fixes this. The issue is that the lock.locked() call just checks that *someone* has the lock, not tha

[issue46726] Thread spuriously marked dead after interrupting a join call

2022-02-11 Thread Ben
Change by Ben : -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue46726> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue46726] Thread spuriously marked dead after interrupting a join call

2022-02-11 Thread Ben
Ben added the comment: You are right, What one really needs here is a way to know *who* owns the lock, but threading.Lock does not provide that. The race on := is much smaller than the original race and I suspect in practice will be very hard to hit. As the original bpo notes, it may not

[issue46726] Thread spuriously marked dead after interrupting a join call

2022-02-11 Thread Ben
Change by Ben : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46726> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12967] AttributeError distutils\log.py

2011-09-12 Thread ben
New submission from ben : AttributeErrors on log.py in the distutils directory import sys stream = sys.stdout if stream.errors == 'strict': pass'=> this will raise an AttributeError' -- assignee: tarek components: Distutils files: log.py messages: 143949 nosy:

[issue12967] AttributeError distutils\log.py

2011-09-13 Thread ben
ben added the comment: Error had been raised when installing the distribute package, but it could be raised on any other usage as sys.stdout does not have an 'error' attribute.     From: Éric Araujo To: thelen_...@yahoo.com Sent: Tuesday, 13 September 2011 8:54 PM Subject: [

[issue12967] AttributeError distutils\log.py

2011-09-16 Thread ben
ben added the comment: Hi Eric,   I'm not suggesting that python does not test the applications. just reporting what I experience. The python version installed is r32:88445   What I did, I opened the setup file (in IDLE) from the distribute 0.6.21 and run this.   On my python 3.2 ve

[issue12967] AttributeError distutils\log.py

2011-09-17 Thread ben
ben added the comment: Hi Ned,   Not sure if I fully understand the IDLE issue, I'm still learning Python (abt. 6 months). Nevertheless I've installed the distributes through the command line.   if you want to reassign this issue to IDLE, please do so.   Best regards,   Ben Thelen

[issue13220] print function unable while multiprocessing.Process is being run

2011-10-19 Thread ben
New submission from ben : print function unable while multiprocessing.Process is being run Not sure if this really is a bug, but the multiprocessing.Process (or Pool) does not allow to print during multiprocessing tasks. I've copied the example from The Python V3.2.2 documentation, li

[issue13220] print function unable while multiprocessing.Process is being run

2011-10-25 Thread ben
ben added the comment: Thanks Terry, That does solve the problem, so the bug is really with IDLE (I got a previous Issue (12967) reported which also was connected to the stdout). I changed the component to IDLE as the lib. is working as it should do. -- components: +IDLE -Library

[issue1982] Feature: extend strftime to accept milliseconds

2011-07-08 Thread Ben
Ben added the comment: Sorry to chime in on an old issue. Whilst it is good to have the ability to format the string up to microsecond precision, it would be better to be able to control the precision used. For instance, the ISO8601 specification states that there is no strictly defined

[issue44962] asyncio.create_task weakrefset race condition

2021-08-20 Thread Ben
Ben added the comment: I can reproduce on 3.9.6 A little digging and it seems asyncio imports Task from _asyncio and _asyncio's implementation (in asynciomodule.c) of Task has an __init__ which adds the task to the `all_tasks` weakref.WeakSet which appears to be implemented in Python (i

[issue45278] RuntimeError on race on weakset concurrent iteration

2021-09-24 Thread Ben
New submission from Ben : This is a very subtle race WeakSet uses _weakrefset.py's _IterationGuard structure to protect against the case where the elements the WeakSet refers to get cleaned up while a thread is iterating over the WeakSet. It defers the actual removal of any elements

[issue45390] asyncio.Task doesn't propagate CancelledError() exception correctly.

2021-10-06 Thread Ben
Ben added the comment: This seems to be present in both the Python implementation as well as the accelerated C _asyncio module. It looks like that when a Task awaits a cancelled future, the task itself is cancelled but the cancellation message is not propagated to the task. https

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Ben
Ben added the comment: The problem with the FAQs is that it's over-simplifying things to the point where it can sometimes mislead. Notably, it says the GIL protects these operations; but as Antoine points out, many operations on datatypes drop back into Python (including potential de

[issue45951] Debugger cannot be resolved

2021-12-01 Thread Ben
New submission from Ben : First, I am not a programmer by any stretch of the imagination, and I am just trying to get this error solved. I attempted to highlight and comment out a section of code, maybe 20 lines, and the program froze, greyed out, and gave me a spinning wheel mouse. I

[issue45951] Debugger cannot be resolved

2021-12-01 Thread Ben
Change by Ben : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45951> ___ ___ P

[issue40815] Multiprocessing docs don't describe thread-safety

2020-05-29 Thread Ben
New submission from Ben : The Multiprocessing docs specifically say that Queue is process- and thread- safe: https://docs.python.org/3/library/multiprocessing.html#exchanging-objects-between-processes. But this information is not given for the various synchronisation primitives and such

[issue41423] `multiprocessing.Array` and `multiprocessing.managers.SyncManager.Array` APIs are similar but not the same

2020-07-28 Thread Ben
Change by Ben : -- nosy: +bjs ___ Python tracker <https://bugs.python.org/issue41423> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Ben
Change by Ben : -- nosy: +bjs, vstinner ___ Python tracker <https://bugs.python.org/issue41676> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Ben
Ben added the comment: looking at the source https://raw.githubusercontent.com/python/cpython/3.8/Doc/library/asyncio-sync.rst it says :meth:`wait` just like the surrounding methods and surrounding types, which all work. Maybe :meth:`Event.wait` would fix? But why :meth:`wait` didn&#

[issue41893] remove() method is not working as expected(Hard to explain)

2020-09-30 Thread Ben
Ben added the comment: See the note in https://docs.python.org/3.7/reference/compound_stmts.html#the-for-statement "There is a subtlety when the sequence is being modified by the loop ..." Since your code is mutating the all_fields list as you iterate it, you get the " ne

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-22 Thread Ben
New submission from Ben : When running the attached on 3.8 and 3.9 (master) I get the following: Process Process-3: Traceback (most recent call last): File "/hom

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-29 Thread Ben
Ben added the comment: It would be nice to get davin to clarify the API for this module. What are the use cases for SharedMemory and ShareableList? Are you supposed to ever use a raw SharedMemory buffer directly? What atomicity guarantees are there for ShareableList operations and read/write

[issue25144] 3.5 Win install fails with "TARGETDIR"

2015-12-03 Thread Ben
Ben added the comment: Still a problem with python-2.7.10.amd64.msi. A bit surprising that this has not been addressed since 2015.05.23... -- nosy: +cbj4074 ___ Python tracker <http://bugs.python.org/issue25

[issue46070] broken subinterpreters

2021-12-15 Thread Ben Steffensmeier
Ben Steffensmeier added the comment: We have been seeing intermittent crashes on jep that we tracked down to the same change (d0d29655ff). I have created a sample program using _testcapi that crashes about 50% of the time when run on Windows with Python 3.9.9. We have not been able to

[issue46307] string.Template should allow inspection of identifiers

2022-01-08 Thread Ben Kehoe
New submission from Ben Kehoe : Currently, the only thing that can be done with a string.Template instance and a mapping is either attempt to substitute with substitute() and catch a KeyError if some identifier has not been provided in the mapping, or substitute with safe_substitute() and

[issue46307] string.Template should allow inspection of identifiers

2022-01-08 Thread Ben Kehoe
Ben Kehoe added the comment: Happy to make a PR! In my mind I had been thinking it would be the get_identifiers() method with the implementation above, returning a list. As for __iter__, I'm less clear on what that would look like: t = string.Template(...) for identifier in t: #

[issue46307] string.Template should allow inspection of identifiers

2022-01-08 Thread Ben Kehoe
Change by Ben Kehoe : -- keywords: +patch pull_requests: +28698 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30493 ___ Python tracker <https://bugs.python.org/issu

[issue46307] string.Template should allow inspection of identifiers

2022-01-08 Thread Ben Kehoe
Ben Kehoe added the comment: I opened a PR. By default, it raises an exception if there's an invalid identifier; there's a keyword argument raise_on_invalid to control that. The implementation I have adds them to a set first, which means the order is not guaranteed. I'm of

[issue46307] string.Template should allow inspection of identifiers

2022-01-09 Thread Ben Kehoe
Ben Kehoe added the comment: Having slept on it, I realized that if I was presenting interactive prompts for a template, I would expect the prompts to be in order that the identifiers appear in the template. Accordingly, I've updated the PR to maintain ord

[issue46307] string.Template should allow inspection of identifiers

2022-01-09 Thread Ben Kehoe
Ben Kehoe added the comment: The point is to be able to programmatically determine what is needed for a successful substitute() call. A basic use case for this is better error messages; calling substitute() with an incomplete mapping will tell you only the first missing identifier it encounters

[issue46307] string.Template should allow inspection of identifiers

2022-01-09 Thread Ben Kehoe
Ben Kehoe added the comment: That doesn’t really seem like a Pythonic way of extracting that information? Nor does it seem like it would be an obvious trick for the average developer to come up with. A method that provides the information directly seems useful

[issue46376] PyMapping_Check returns 1 for list

2022-01-25 Thread Ben Avrahami
Ben Avrahami added the comment: IMHO, I don't think any alternative to aviramha's solution addresses the issue, And I don't think the need is niche enough to be ignored. PyType_HasFeature excludes strings, bytes, and other esoteric types. PyMapping_Check includes mapping

[issue41962] Make threading._register_atexit public?

2022-02-04 Thread Ben Darnell
Ben Darnell added the comment: > To be clear, by "cancel" you are not talking about Future.cancel(). Rather, > your handler causes all running tasks to finish (by sending a special message > on the socket corresponding to each running task). Is that right? Correct. My t

[issue39860] configparser - no support for cascading defaults (as defined by MySQL)

2022-02-09 Thread Ben Griffin
Ben Griffin added the comment: This is still being ignored. It's a bug, because it prevents the ini file from being used by other clients. -- versions: +Python 3.10, Python 3.11, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.py

[issue1141] reading large files

2007-09-11 Thread Ben Beasley
Ben Beasley added the comment: I ran Richard Christen's script from msg55784 on Ubuntu Feisty Fawn (64-bit) with both Python 2.5.1 and Python 3.0a1 (for the latter, I had to change xrange to range). (2, 5, 1, 'final', 0) 2007-09-11 11:39:08 (500, 7.392560005187

[issue1141] reading large files

2007-09-11 Thread Ben Beasley
Ben Beasley added the comment: See the BDFL's comment in msg55828. "I know Py3k text I/O is very slow; it's written in Python and uses UTF-8 as the default encoding. We've got a summer of code student working on an accelerating this. (And if he doesn't finish we have a

[issue1281] type in docutmentatio section 14.3.3.4

2007-10-15 Thread Ben Sherman
New submission from Ben Sherman: """ If, a little later on, "-tracks=4" is seen, it does: options.tracks.append(int("4")) """ That should read --tracks=4, not -tracks=4 Found at http://docs.python.org/lib/optparse-standard-option-actions.h

[issue1281] type in docutmentation - lib ref section 14.3.3.4

2007-10-15 Thread Ben Sherman
Ben Sherman added the comment: Typos corrected. -- title: type in docutmentatio section 14.3.3.4 -> type in docutmentation - lib ref section 14.3.3.4 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1281] typo in documentation - lib ref section 14.3.3.4

2007-10-18 Thread Ben Sherman
Ben Sherman added the comment: There were typos in my original bug report - the typo in the documentation is still a bug. Ugh, someone must have brewed decaf. -- title: type in docutmentation - lib ref section 14.3.3.4 -> typo in documentation - lib ref section 14.3.

[issue13055] Distutils tries to handle null versions but fails

2011-09-28 Thread Ben Gamari
New submission from Ben Gamari : The distutils.LooseVersion constructor currently only calls parse if vstring has a value. Unfortunately, this means that a user passing in vstring="" or vstring=None gets a version object with self.vstring and self.version unset. This wreaks havoc

[issue13055] Distutils tries to handle null versions but fails

2011-09-28 Thread Ben Gamari
Changes by Ben Gamari : Added file: http://bugs.python.org/file23253/distutils-workaround.patch ___ Python tracker <http://bugs.python.org/issue13055> ___ ___ Python-bug

[issue13055] Distutils tries to handle null versions but fails

2011-09-28 Thread Ben Gamari
Changes by Ben Gamari : -- assignee: -> tarek components: +Distutils nosy: +eric.araujo, tarek type: -> crash versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/i

[issue13073] message_body argument of HTTPConnection.endheaders is undocumented

2011-10-02 Thread Ben Hayden
Ben Hayden added the comment: I added in docs for the method from the actual method docstring from the http.client module. -- keywords: +patch nosy: +beardedp Added file: http://bugs.python.org/file23290/issue13073.patch ___ Python tracker <h

[issue13120] Default nosigint optionto pdb.Pdb() prevents use in non-main thread

2011-10-06 Thread Ben Bass
New submission from Ben Bass : The new SIGINT behaviour of pdb.Pdb prevents use of pdb within a non-main thread without explicitly setting nosigint=True. Specifically the 'continue' command causes a traceback as follows: {{{ ... File "/Library/Frameworks/Python.framework/V

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2011-10-06 Thread Ben Bass
Changes by Ben Bass : -- title: Default nosigint optionto pdb.Pdb() prevents use in non-main thread -> Default nosigint option to pdb.Pdb() prevents use in non-main thread ___ Python tracker <http://bugs.python.org/issu

[issue13055] Distutils tries to handle null versions but fails

2011-10-09 Thread Ben Gamari
Ben Gamari added the comment: The bug was encountered while trying to install a package. As it turns out, a dependency was incorrectly installed, resulting in a null version being passed around which quickly caused a crash in setup.py. While this is definitely not a normal circumstance, the

[issue13055] Distutils tries to handle null versions but fails

2011-10-10 Thread Ben Gamari
Ben Gamari added the comment: Sorry, no log is available. -- ___ Python tracker <http://bugs.python.org/issue13055> ___ ___ Python-bugs-list mailing list Unsub

[issue12014] str.format parses replacement field incorrectly

2011-11-28 Thread Ben Wolfson
Ben Wolfson added the comment: I just noticed that the patch labelled strformat-as-document is actually the same as the other one, owing to my incompetence. Anyway, as far as I can tell the patches would have to be reworked in the light of recent changes anyway. I am willing to do this if

[issue12014] str.format parses replacement field incorrectly

2011-11-30 Thread Ben Wolfson
Ben Wolfson added the comment: "All three patches look different to me." Yeah, I verified that later; I'm not sure what made me think otherwise except that I eyeballed them sloppily. (It's still true that they'd need to target a d

[issue13747] ssl_version documentation error

2012-01-09 Thread Ben Darnell
New submission from Ben Darnell : The ssl module docs claim that the default ssl_version for client-side operation is SSLv3, but it is actually SSLv23. The exact behavior depends on the version of openssl: starting in 1.0 the connection is limited by default to SSLv3 or TLSv1 (as documented

[issue13747] ssl_version documentation error

2012-01-09 Thread Ben Darnell
Ben Darnell added the comment: Not necessarily. If I want to run python 2.7 or 3.x on an older linux distribution (e.g. Ubuntu 10.04 LTS, which has python 2.6 and openssl 0.9.8), I need to build from source, but I wouldn't think to update/rebuild all the dependencies from the grou

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson added the comment: Hm. As I interpret this: The str.format() function will have a minimalist parser which only attempts to figure out when it is "done" with an identifier (by finding a '.' or a ']', or '}', etc.). The present

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson added the comment: """ PEP 3101 defines format strings as intermingled character data and markup. Markup defines replacement fields and is delimited by braces. Only after markup is extracted does the PEP talk about interpreting the contents of the markup. So, given

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson added the comment: str.format doesn't intermingle character data and markup. The PEP is quite clear about the terms in this case, at least: the *argument* to str.format consists of character data (passed through unchanged) and markup (processed). That's what it means t

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson added the comment: """ >From the PEP: "Format strings consist of intermingled character data and >markup." """ I know. Here is an example of a format string: "hello, {0}" Here is the character data from that format stri

[issue12376] unittest.TextTestResult.__init__ breaks under complex __mro__

2011-06-20 Thread Ben Ranker
New submission from Ben Ranker : TextTestResult.__init__(...) calls super(TextTestResult, self).__init__() with no args. If a custom TextTestResult descendant has a complex inheritance hierarchy that puts another class between TextTestResult and TestResult in the __mro__, then that class

[issue12376] unittest.TextTestResult.__init__ does not pass on its init arguments in super call

2011-06-27 Thread Ben Ranker
Ben Ranker added the comment: Sorry for any confusion caused by my imprecise use of the word "explodes." -- ___ Python tracker <http://bugs.python.o

[issue12014] str.format parses replacement field incorrectly

2011-07-06 Thread Ben Wolfson
Ben Wolfson added the comment: This patch differs from the previous one; its goal is to bring the actual behavior of the interpreter into line with the documentation (with the exception of using only decimal integers, rather than any integers, wherever the documentation for str.format

[issue12014] str.format parses replacement field incorrectly

2011-07-06 Thread Ben Wolfson
Ben Wolfson added the comment: And here is a patch for Greg Ewing's proposal: http://mail.python.org/pipermail/python-dev/2011-June/111934.html Again, decimal integers rather than any kind of integers are used. Both patches alter the exceptions expected in various places in test_unic

[issue12014] str.format parses replacement field incorrectly

2011-07-06 Thread Ben Wolfson
Ben Wolfson added the comment: undo integer -> decimalinteger in docs -- Added file: http://bugs.python.org/file22601/strformat-as-documented.diff ___ Python tracker <http://bugs.python.org/issu

[issue12014] str.format parses replacement field incorrectly

2011-07-06 Thread Ben Wolfson
Changes by Ben Wolfson : Removed file: http://bugs.python.org/file22598/strformat-as-documented.diff ___ Python tracker <http://bugs.python.org/issue12014> ___ ___ Pytho

[issue12014] str.format parses replacement field incorrectly

2011-07-06 Thread Ben Wolfson
Ben Wolfson added the comment: (same as previous) -- Added file: http://bugs.python.org/file22602/strformat-just-identifiers-please.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12014] str.format parses replacement field incorrectly

2011-07-06 Thread Ben Wolfson
Changes by Ben Wolfson : Removed file: http://bugs.python.org/file22599/strformat-just-identifiers-please.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-07-10 Thread Ben Darnell
New submission from Ben Darnell : cgi.parse_header doesn't work on headers that contain combinations of double quotes and semicolons (although it works with either type of character individually). >>> cgi.parse_header('form-data; name="files"; filename="

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-01 Thread Ben Darnell
Ben Darnell added the comment: These functions are used when passing a socket object across a multiprocessing.Queue. -- ___ Python tracker <http://bugs.python.org/issue11

[issue12725] Docs: Odd phrase "floating seconds" in socket.html

2011-08-13 Thread Ben Hayden
Ben Hayden added the comment: I made the suggested second change - both in the docs & the socketmodule.c file. If there's a different way to patch documentation, someone let me know. :D -- keywords: +patch nosy: +beardedp Added file: http://bugs.python.org/file22896/issue12

[issue12750] datetime.datetime timezone problems

2011-08-15 Thread Ben Finney
Changes by Ben Finney : -- nosy: +bignose ___ Python tracker <http://bugs.python.org/issue12750> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12756] datetime.datetime.utcnow should return a UTC timestamp

2011-08-15 Thread Ben Finney
New submission from Ben Finney : = $ date -u +'%F %T %s %z' 2011-08-16 06:42:12 1313476932 + $ python -c 'import sys, datetime; now = datetime.datetime.utcnow(); sys.stdout.write(now.strftime("%F %T %s %z"))' 2011-08-16 06:42:12 1313440932

[issue12786] subprocess wait() hangs when stdin is closed

2011-08-19 Thread Ben Wolfson
Ben Wolfson added the comment: "The guys at #python-dev confirmed the same happens on 2.7 but not on 3.x." Really? This is on gentoo, not debian, admittedly: coelacanth ~ 11:12:36 $ python3 Python 3.1.3 (r313:86834, May 1 2011, 09:41:48) [GCC 4.4.4] on linux2 Type "he

[issue3710] Reference leak in thread._local

2010-08-21 Thread Ben Cottrell
Ben Cottrell added the comment: The latest patch over in #1868 is working fine for my company in production, and solves #3710 as well. I think the only thing left to do on that patch is to make it special case "__dict__". -- ___ Pyth

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Ben Walker
Ben Walker added the comment: I have been using the following patch to fix the issue locally for a few weeks now (in addition to something equivalent to what Brian submitted for the _curses issue). These two patches combined give me a working python 2.7 on cygwin 1.7. I originally used

[issue9694] argparse: Default Help Message Lists Required Args As Optional

2010-08-26 Thread Ben Schmaus
New submission from Ben Schmaus : The argparse module lists required args as optional in the default help message. If you run the following program (also attached) you'll get the output listed below. #!/usr/bin/env python import argparse parser = argparse.ArgumentParser( descri

[issue9694] argparse: Default Help Message Lists Required Args As Optional

2010-08-26 Thread Ben Schmaus
Ben Schmaus added the comment: FWIW, I like the idea of just using the label "options". -- ___ Python tracker <http://bugs.python.org/issue9694> ___ ___

[issue1351020] PythonD DJGPP-specific patch set for porting to DOS.

2010-08-30 Thread Ben Decker
Ben Decker added the comment: Closed then. The next patch will posted at http://www.caddit.net/pythond/when we get around to doing a version 3 port. Frankly, as the current v2 binary meets most remaining requirements on this legacy platform, we are left with modern syntax compatibility as

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-15 Thread Ben Smith
Ben Smith added the comment: I also see this issue on occasion on windows XP SP 3, using python 2.6.5 to fetch large files via http. The error is infrequent, but it is happening in my situation without a VM. -- nosy: +Ben.Smith ___ Python tracker

[issue5131] pprint doesn't know how to print a defaultdict

2010-09-28 Thread Ben Bass
Ben Bass added the comment: Same applies to collections.deque, which seems closely related (being another collections class). Can this get addressed here or should I open another issue? (just been pprinting defaultdict(deque) objects, which clearly fails :) -- nosy: +bpb

[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari
New submission from Ben Gamari : Even the simple example included below fails in the following manner, $ sudo python3.1 hi.py 3 Traceback (most recent call last): File "hi.py", line 13, in ioctl(a, EVIOCGID, buf, True) TypeError: ioctl requires a file or file descriptor, an i

[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari
Changes by Ben Gamari : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue10345> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari
Ben Gamari added the comment: The problem seems to have been that I tried passing mutate_flag. Things seem to work fine when the last parameter is omitted. -- ___ Python tracker <http://bugs.python.org/issue10

[issue11550] Fix ResourceWarning in test_pulldom

2011-03-14 Thread Ben Hayden
New submission from Ben Hayden : When running the test_pulldom test with a latest checkout of cpython from hg.python.org on Ubuntu 10.10 x64, the following ResourceWarning is thrown: test_parse (test.test_pulldom.PullDOMTestCase) Minimal test of DOMEventStream.parse() ... /home/benhayden

[issue11550] Fix ResourceWarning in test_pulldom

2011-03-14 Thread Ben Hayden
Changes by Ben Hayden : Removed file: http://bugs.python.org/file21203/test_pulldom_resource_warning.patch ___ Python tracker <http://bugs.python.org/issue11550> ___ ___

[issue11550] Fix ResourceWarning in test_pulldom

2011-03-14 Thread Ben Hayden
Changes by Ben Hayden : -- versions: -Python 3.3, Python 3.4 Added file: http://bugs.python.org/file21205/test_pulldom_resource_warning.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11550] Fix ResourceWarning in test_pulldom

2011-03-15 Thread Ben Hayden
Ben Hayden added the comment: I was unclear as to why the list() calls were there. I thought it would just change the iterator into a list - I didn't know that actually was needed for the test - my mistake. I'll change it back to the list() - but I'll need to loop over the fir

[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-03-15 Thread Ben Hayden
Ben Hayden added the comment: Adding a patch that adds an __exit__ function much like the one that socket.socket implements. Passes the test_asyncore & also doesn't raise a resource warning when I explicitly comment out some close() calls on file wrapper objects in

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-03-23 Thread Ben Darnell
New submission from Ben Darnell : Line 125 of multiprocessing.c is "*CMSG_DATA(cmsg) = fd;". CMSG_DATA returns an unsigned char*, while fd is an int, so this code does not support file descriptors > 256 (additionally, I'm not sure if the buffer is guaranteed to be init

[issue11659] Fix ResourceWarning in test_subprocess

2011-03-23 Thread Ben Hayden
New submission from Ben Hayden : Adding in a cleanup to close Popen stdout in the function test_select_unbuffered in test_subprocess file in Lib/test dir. There are several tickets about different resource warnings mentioning test_subprocess - but I couldn't find any patches that fix

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2011-04-12 Thread Ben Bass
Ben Bass added the comment: Perhaps this should be addressed separately, but subprocess.CalledProcessError is subject to this problem (can't be unpickled) (it has separate returncode and cmd attributes, but no args). It's straightforward to conform user-defined Exceptions to inclu

[issue11914] pydoc modules/help('modules') crash in dirs with unreadable subdirs

2011-04-23 Thread Ben Okopnik
New submission from Ben Okopnik : Long-standing problem (happens in every Python version I've tested). The usual situation is when invoking Python (and then "help('modules')") or "pydoc modules" in /tmp, but also happens when located anywhere with unreadabl

[issue11914] pydoc modules/help('modules') crash in dirs with unreadable subdirs

2011-04-27 Thread Ben Okopnik
Ben Okopnik added the comment: Here's a test that should exercise every version of "pydoc" installed on the system: mkdir -p /tmp/foo/bar; cd /tmp/foo; chmod 0 bar for n in `whereis -b pydoc`; do echo " $n "; $n modules; done Tested under Ubuntu with bash

[issue11914] pydoc modules/help('modules') crash in dirs with unreadable subdirs

2011-04-27 Thread Ben Okopnik
Ben Okopnik added the comment: Trivial fix: please see attached. As to test_pydoc.py, I don't know the system well enough to fiddle with it, but something like this should work (untested): def test_unreadable_dir(self): ''' pydoc should handle unreadabl

[issue11914] pydoc modules/help('modules') crash in dirs with unreadable subdirs

2011-04-27 Thread Ben Okopnik
Ben Okopnik added the comment: Whoops... with all of that, I just realized that this bug should be filed against pkgutil, not pydoc (pydoc, of course, calls pkgutil to do the path resolution, which is where this crash occurs.) My bad. >>> import pkgutil >>> inst = pkguti

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-04 Thread Ben Morgan
New submission from Ben Morgan : PyZipFile.writepy gives internal error on syntax errors in files it processes. For example, in the attached test case: Traceback (most recent call last): File "C:\tfs\SDKS\python\Python32\lib\py_compile.py", line 119, in compile optimize=optimi

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-04 Thread Ben Morgan
Changes by Ben Morgan : -- keywords: +patch Added file: http://bugs.python.org/file21889/pyzipfile-error.patch ___ Python tracker <http://bugs.python.org/issue12

  1   2   3   4   5   6   >