[issue15936] Add link from os.urandom to random.SystemRandom

2012-10-13 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue15936> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-20 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue16288> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-21 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: -mikehoy ___ Python tracker <http://bugs.python.org/issue16288> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16294] 8 space indent in tutorial

2012-10-21 Thread Mike Hoy
Mike Hoy added the comment: Probably no need for a patch (since it's such a simple fix) but I felt like doing something. -- keywords: +patch nosy: +mikehoy Added file: http://bugs.python.org/file27656/issue16294.diff ___ Python tracker

[issue12944] Accept arbitrary files for packaging's upload command

2012-10-21 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: -mikehoy ___ Python tracker <http://bugs.python.org/issue12944> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13198] Remove duplicate definition of write_record_file

2012-10-21 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: -mikehoy ___ Python tracker <http://bugs.python.org/issue13198> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15569] Doc doc: incorrect description of some roles as format-only

2012-10-21 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: -mikehoy ___ Python tracker <http://bugs.python.org/issue15569> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13510] Clarify that readlines() is not needed to iterate over a file

2012-10-26 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue13510> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-04-22 Thread Mike Mazurek
Mike Mazurek added the comment: In building pycrypto for python 3.4 I applied patch msvccompiler9_33.diff. After applying the patch there is an unassigned variable: KEY_BASE on line 67 of the patched file. After setting KEY_BASE = "Software\\Wow6432Node\\Microsoft\\" before its f

[issue21664] multiprocessing leaks temporary directories pymp-xxx

2014-06-04 Thread Mike Frysinger
Mike Frysinger added the comment: this has been fixed between py3.2 and py3.3: http://hg.python.org/cpython/diff/831ae71d0bdc/Lib/multiprocessing/managers.py so just asking for that to be backported to the py2.x branch :) -- nosy: +vapier ___ Python

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2014-06-11 Thread mike bayer
New submission from mike bayer: Per DBAPI and pysqlite docs, .description must be available for any SELECT statement regardless of whether or not rows are returned. However, this fails for SELECT statements that aren't simple "SELECT"s, such as those that use CTEs and ther

[issue21759] URL Typo in Documentation FAQ

2014-06-14 Thread Mike Short
Changes by Mike Short : -- keywords: +patch Added file: http://bugs.python.org/file35639/programmingfaq.patch ___ Python tracker <http://bugs.python.org/issue21

[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2012-11-03 Thread mike bayer
mike bayer added the comment: in response to ezio, I poked around the source here, since I've never been sure if re.compile() cached its result or not. It seems to be the case in 2.7 and 3.2 also - 2.7 uses a local caching scheme and 3.2 uses functools.lru_cache, yet we don't see

[issue9253] argparse: optional subparsers

2013-02-10 Thread mike bayer
mike bayer added the comment: um, this seems like a regression/bug? I now have users complaining that my apps are broken because of this change as of Python 3.3.My application is supposed to return the "help" screen when no command is given. Now I get a None error because a

[issue19024] Document asterisk (*), splat or star operator

2013-09-17 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue19024> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18918] help('FILES') finds no documentation

2013-09-17 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue18918> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18855] Inconsistent README filenames

2013-09-17 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue18855> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin

2013-11-09 Thread Mike FABIAN
New submission from Mike FABIAN: Originally reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1024667 I found that Serbian translations in Latin do not work when the locale name is written as sr_RS.UTF-8@latin (one gets the cyrillic translations instead), but they *do* work when the

[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin

2013-11-09 Thread Mike FABIAN
Mike FABIAN added the comment: The problem turns out to be caused by a problem in normalizing the locale name, see the output of this test program: mfabian@ari:~ $ cat ~/tmp/mike-test.py #!/usr/bin/python2 import sys import os import locale import encodings import encodings.aliases

[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin

2013-11-09 Thread Mike FABIAN
Mike FABIAN added the comment: A simple fix for that problem could look like this: mfabian@ari:~ $ diff -u /usr/lib64/python2.7/locale.py.orig /usr/lib64/python2.7/locale.py --- /usr/lib64/python2.7/locale.py.orig 2013-11-09 09:08:24.807331535 +0100 +++ /usr/lib64/python2.7/locale.py 2013

[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin

2013-11-09 Thread Mike FABIAN
Mike FABIAN added the comment: in locale.py, the comment above “locale_alias = {” says: # Note that the normalize() function which uses this tables # removes '_' and '-' characters from the encoding part of the # locale name before doing the lookup. This saves a lot of

[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin

2013-11-09 Thread Mike FABIAN
Mike FABIAN added the comment: I think the patch I attach here is a better fix than the patch in http://bugs.python.org/msg202469 because it makes the normalize() function behave more logical overall, with this patch, my test program prints: mfabian@ari:/local/mfabian/src/cpython (2.7-mike

[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin

2013-11-09 Thread Mike FABIAN
Mike FABIAN added the comment: The patch http://bugs.python.org/file32552/0001-Issue-19534-fix-normalize-in-locale.py-to-make-it-wo.patch is against the current HEAD of the 2.7 branch, but Python 3.3 has exactly the same problem, the same patch fixes it for python 3.3 as well

[issue5815] locale.getdefaultlocale() missing corner case

2013-11-10 Thread Mike FABIAN
Mike FABIAN added the comment: Serhiy, in your patch you seem to have special treatment for the devanagari modifier: +# Devanagari modifier placed before encoding. +return code, modifier.split('.')[1] Probably because of 'k

[issue5815] locale.getdefaultlocale() missing corner case

2013-11-10 Thread Mike FABIAN
Mike FABIAN added the comment: Serhiy> The /usr/share/X11/locale/locale.alias file in Ubuntu 12.04 LTS Serhiy> contains ks...@devanagari.utf-8 and sd...@devanagari.utf-8 Serhiy> entities. Yes, I know, that’s why I wrote that the Python code inherited this mistake from X.org. Serhiy&g

[issue5815] locale.getdefaultlocale() missing corner case

2013-11-10 Thread Mike FABIAN
Mike FABIAN added the comment: In glibc, sd...@devanagari.utf-8 is an invalid locale name, only sd_IN.UTF-8@devanagari is valid: mfabian@ari:~ $ LC_ALL=sd_IN.UTF-8@devanagari locale charmap UTF-8 mfabian@ari:~ $ LC_ALL=sd...@devanagari.utf-8 locale charmap locale: Cannot set LC_CTYPE to default

[issue5815] locale.getdefaultlocale() missing corner case

2013-11-12 Thread Mike FABIAN
Mike FABIAN added the comment: Serhiy> While normalize can return sd...@devanagari.utf-8, _parse_localename() Serhiy> should be able correctly parse it. But if normalize returns sd...@devanagari.utf-8, isn’t that quite useless because it is a locale name which does not actually work in

[issue22118] urljoin fails with messy relative URLs

2014-08-01 Thread Mike Lissner
New submission from Mike Lissner: Not sure if this is desired behavior, but it's making my code break, so I figured I'd get it filed. I'm trying to crawl this website: https://www.appeals2.az.gov/ODSPlus/recentDecisions2.cfm Unfortunately, most of the URLs in the HTML are r

[issue22118] urljoin fails with messy relative URLs

2014-08-01 Thread Mike Lissner
Mike Lissner added the comment: FWIW, the workaround that I've just created for this problem is this: u = 'https://www.appeals2.az.gov/../Decisions/CR20130096OPN.pdf' # Split the url and rejoin it, nuking any '/..' patterns at the # beginning of the path. s = ur

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Mike Lissner
Mike Lissner added the comment: @pitrou, I haven't delved into URLs in a long while, but the general idea is: scheme://domain:port/path?query_string#fragment_id When would it ever make sense to have something up a level from the root of the d

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Mike Lissner
Mike Lissner added the comment: @demian.brecht, that'd make me very pleased if you took this over. I won't have time to devote to it, unfortunately. -- ___ Python tracker <http://bugs.python.o

[issue22118] urljoin fails with messy relative URLs

2014-08-11 Thread Mike Lissner
Mike Lissner added the comment: Just hopping in here to say that the work going down here is beautiful. I've filed a lot of bugs. This one's not particularly difficult, but damn, I appreciate the speed and quality going into fixing it. Glad to see the Python language is a happy

[issue22154] ZipFile.open context manager support

2014-09-01 Thread Mike Short
Mike Short added the comment: Context manager comment & code snippet added to zipfile doc - patch attached. -- keywords: +patch nosy: +Mike.Short Added file: http://bugs.python.org/file36521/zipfile.patch ___ Python tracker <http://bugs.pyt

[issue19826] Document that bug reporting by email is possible

2014-09-01 Thread Mike Short
Mike Short added the comment: Addition to bugs.html to describe submitting bugs via email -- keywords: +patch nosy: +Mike.Short Added file: http://bugs.python.org/file36525/bugs.patch ___ Python tracker <http://bugs.python.org/issue19

[issue19826] Document that bug reporting by email is possible

2014-09-01 Thread Mike Short
Mike Short added the comment: Same addition to the Python Dev Guide - seemed more appropriate on the tracker page vs. the triaging page. -- Added file: http://bugs.python.org/file36526/tracker.patch ___ Python tracker <http://bugs.python.

[issue22457] load_tests not invoked in root __init__.py when start=package root

2014-09-21 Thread mike bayer
Changes by mike bayer : -- nosy: +zzzeek ___ Python tracker <http://bugs.python.org/issue22457> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19890] Typo in multiprocessing docs

2013-12-29 Thread Mike Short
Changes by Mike Short : -- keywords: +patch Added file: http://bugs.python.org/file33287/multiprocessing.patch ___ Python tracker <http://bugs.python.org/issue19

[issue19890] Typo in multiprocessing docs

2013-12-29 Thread Mike Short
Changes by Mike Short : -- nosy: +Mike.Short ___ Python tracker <http://bugs.python.org/issue19890> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2014-01-09 Thread mike bayer
mike bayer added the comment: see also http://bugs.python.org/issue10740, which also relates to pysqlite attempting to make guesses as to when transactions should begin and end. -- ___ Python tracker <http://bugs.python.org/issue9

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-01-09 Thread mike bayer
mike bayer added the comment: well Adam, you might also be surprised to see pysqlite not doing very well on the *other* side of the equation either; that is, when it *begins* the transaction. Issue http://bugs.python.org/issue9924 refers to this and like this one, hasn't seen any act

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
New submission from Mike Owens: When using strftime from the time module on 64bit Python for Windows the format specifier %z gives the time zone name instead of the time zone offset as stated in the documentation. eg >>> strftime("%z") 'US Mountain Standard Time

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
Mike Owens added the comment: Expected output should be -0700. I checked Python 3.3.1 and 2.7.4 on Linux and the output is as expected. -- ___ Python tracker <http://bugs.python.org/issue20

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
Mike Owens added the comment: Documentation doesn't have a foot note for either %z or %Z but there is generic footnote talking about C lib behavior and that %z is deprecated. I guess if there were a foot note in the table for %z that would save some time for eve

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
Mike Owens added the comment: The datetime.strftime function produces no output for %z or %Z. Very irritating. -- ___ Python tracker <http://bugs.python.org/issue20

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
Mike Owens added the comment: I'm looking right at the 3.3 docs right now. %z is in the table. 8.1.8. strftime() and strptime() Behavior -- ___ Python tracker <http://bugs.python.org/is

[issue20649] Minor grammatical mistake for asyncio dev docs

2014-02-17 Thread Mike Short
Changes by Mike Short : -- keywords: +patch nosy: +Mike.Short Added file: http://bugs.python.org/file34127/asyncio-dev.patch ___ Python tracker <http://bugs.python.org/issue20

[issue17482] functools.update_wrapper mishandles __wrapped__

2014-02-18 Thread mike bayer
mike bayer added the comment: this is actually biting me, I think, though I'm having a very hard time getting a small Python script to duplicate it :/. https://bitbucket.org/zzzeek/alembic/issue/175/test-suite-failure-under-python34 refers to the current problems I'm having.

[issue17482] functools.update_wrapper mishandles __wrapped__

2014-02-18 Thread mike bayer
mike bayer added the comment: i think I found the problem. sorry for the noise. -- ___ Python tracker <http://bugs.python.org/issue17482> ___ ___ Python-bug

[issue17482] functools.update_wrapper mishandles __wrapped__

2014-02-18 Thread mike bayer
mike bayer added the comment: OK well, let me just note what the issue is, and I think this is pretty backwards-incompatible, and additionally I really can't find any reasonable way of working around it except for just deleting __wrapped__. It would be nice if there were some reci

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer
New submission from mike bayer: The Python builtin property() historically does not allow inspect.getargspec to be called on any of __get__(), __set__(), or __delete__(). As of 3.4, it seems that this call now succeeds. However the answer it gives for __delete__() seems to be incorrect

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer
Changes by mike bayer : -- components: +Library (Lib) type: -> behavior ___ Python tracker <http://bugs.python.org/issue20786> ___ ___ Python-bugs-list mai

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer
mike bayer added the comment: for context, we are currently creating wrappers around these methods in SQLAlchemy, and in the case of property dunders, we expect that exception and catch it. So when the exception doesn't happen, we assume the answer is correct, but in this case it&

[issue20828] inspect.getargspec() returns wrong answer with datetime.today.__call__()

2014-03-02 Thread mike bayer
New submission from mike bayer: this appears like it may be related to http://bugs.python.org/issue20786, at least in terms of inspect.getargspec() seems to be returning answers in 3.4 where it used to raise TypeError, however like in 20786 it's again returning the wrong answer. I'

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-03-02 Thread mike bayer
mike bayer added the comment: see also http://bugs.python.org/issue20828 as it seems like there might be a bigger pattern here (not sure). -- ___ Python tracker <http://bugs.python.org/issue20

[issue20828] inspect.getargspec() returns wrong answer with datetime.today.__call__()

2014-03-02 Thread mike bayer
mike bayer added the comment: I've also worked around this on my end, so if my poking into today.__call__() isn't really a good idea anyway, I'm not doing that anymore. -- ___ Python tracker <http://bugs.pyt

[issue20828] inspect.getargspec() returns wrong answer with datetime.today.__call__()

2014-03-02 Thread mike bayer
mike bayer added the comment: we basically need to be able to get the argument signature for anything that passes callable(); function, method, class, object with __call__. So this is the logic we use: import inspect def get_callable_argspec(fn): if inspect.isfunction(fn) or

[issue20828] inspect.getargspec() returns wrong answer with datetime.today.__call__()

2014-03-02 Thread mike bayer
mike bayer added the comment: I've got something like that going on right now, but am doing it in the other direction; when I look at __call__(), I only do anything with it if it passes inspect.ismethod(). Since I only want plain Python __call__() functions on plain Python ob

[issue11380] Improve reporting of broken stdout pipe during interpreter shutdown

2014-03-10 Thread mike bayer
mike bayer added the comment: my users are reporting one of these issues, and while I can easily catch IOError on Python 2, I can't catch anything on Python 3, and pointing SIGPIPE to SIG_DFL isn't an option because this is for Alembic migrations and the command needs to complet

[issue6677] Place the term "delete" within the documentation for os.remove() and os.rmdir()

2009-08-10 Thread Mike Cowperthwaite
New submission from Mike Cowperthwaite : "Remove" and "unlink" are not the most widely-known verbs that come to mind when thinking about deleting objects from the filesystem. A recent Google search for "python delete file" led to the documentation for the 'o

[issue6677] Place the term "delete" within the documentation for os.remove() and os.rmdir()

2009-08-24 Thread Mike Cowperthwaite
Mike Cowperthwaite added the comment: Thanks, but the bug requested a similar change for "rmdir" as well. Is it not possible to backport the change to the 2.x branch? -- ___ Python tracker <http://bugs.python.

[issue6677] Place the term "delete" within the documentation for os.remove() and os.rmdir()

2009-08-24 Thread Mike Cowperthwaite
Mike Cowperthwaite added the comment: Very good. Thank you, Georg. -- ___ Python tracker <http://bugs.python.org/issue6677> ___ ___ Python-bugs-list mailin

[issue6245] Add "intel" universal architecture on OSX

2009-08-29 Thread mike bayer
Changes by mike bayer : -- nosy: +zzzeek ___ Python tracker <http://bugs.python.org/issue6245> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1006238] cross compile patch

2009-11-01 Thread Mike Frysinger
Mike Frysinger added the comment: AC_TRY_RUN is already documented: http://www.gnu.org/software/autoconf/manual/html_node/Obsolete-Macros.html#index-AC_005fTRY_005fRUN-1992 there are a bunch of distros out there (like OE and Gentoo) that have been maintaining cross-compile patches for python

[issue1006238] cross compile patch

2009-11-01 Thread Mike Frysinger
Mike Frysinger added the comment: Gregory: there's no need to be a dick. i'm pointing out the obvious -- bugs have been open literally for *years* with zero assistance/feedback from anyone who can actually get things merged. people have posted patches, but no one has said "

[issue1006238] cross compile patch

2009-11-01 Thread Mike Frysinger
Mike Frysinger added the comment: the chflags is specifically documented as needing a runtime test: # On Tru64, chflags seems to be present, but calling it will # exit Python which is why i left the default of AC_TRY_RUN but cross-compile falls back to a simple link test. btw, a compile test

[issue7568] Spelling error in imaplib module docs

2009-12-23 Thread Mike Putnam
New submission from Mike Putnam : The documentation string within the IMAP4.thread function incorrectly spells the "threading_algorithm" arg as "threading_alogrithm" Appears to affect imaplib.py ver. 2.55 & 2.58 Could not find other versions to examine. Starting

[issue5319] I/O error during one-liner fails to return OS error status

2009-02-19 Thread Mike Coleman
New submission from Mike Coleman : $ python2.5 -c 'print((1, 2, 3))' > /dev/full || echo error status close failed: [Errno 28] No space left on device $ The above sequence should also output 'error status' before the next prompt. That is, python should not be returni

[issue5319] I/O error during one-liner fails to return OS error status

2009-02-19 Thread Mike Coleman
Mike Coleman added the comment: Oops, I should have used the old python print syntax. Nonetheless, the behavior is the same: $ python2.5 -c 'print 1, 2, 3' > /dev/full || echo error status close failed: [Errno 28] No space left on device $ -- components: +Int

[issue5320] I/O error during one-liner gives bad diagnostic (and fails to return OS error status)

2009-02-19 Thread Mike Coleman
New submission from Mike Coleman : $ python2.6 -c 'print 1, 2, 3' > /dev/full || echo error status close failed in file object destructor: Error in sys.excepthook: Original exception was: $ It seems like something other than blank lines should be printed here.

[issue5321] I/O error during one-liner gives no (!) diagnostic (and fails to return OS error status)

2009-02-19 Thread Mike Coleman
New submission from Mike Coleman : $ python3.0 -c 'print((1, 2, 3))' > /dev/full || echo error status $ This command gives no indication whatsoever that anything has gone wrong. Following this with strace demonstrates that the interpreter is in fact ignoring these errors: 2589

[issue5320] I/O error during one-liner gives bad diagnostic (and fails to return OS error status)

2009-02-19 Thread Mike Coleman
Mike Coleman added the comment: Also, as with the other python versions, notice that the error status is EXIT_SUCCESS (which it should not be). ___ Python tracker <http://bugs.python.org/issue5

[issue5331] multiprocessing hangs when Pool used within Process

2009-02-20 Thread mike bayer
New submission from mike bayer : this occurs for me running on Mac OSX Leopard. The equivalent code using "processing" in python 2.5 works fine, which is how I found this bug - my code hung when upgraded to 2.6.Basically initiating a multiprocessing.Pool inside of multiprocessi

[issue5370] unpickling vs. __getattr__

2009-02-25 Thread Mike Meyer
New submission from Mike Meyer : The attached short file causes all of python 2.5, 2.6 and 3.0 to drop into infinite recursion trying to unpickle the created object, but the 2.5 version has the cleanest The problem appears to be that the unpickle code (C in 3.0; Python in 2.5 - I assume the

[issue1006238] cross compile patch

2009-02-25 Thread Mike Frysinger
Mike Frysinger added the comment: Garrett: your configure method is overly complicated. all you need to do is set --build=binos_c3.4.3-p1.mips64-octeon-linux. autoconf will figure out all the other toolchain settings. ___ Python tracker <h

[issue5370] unpickling vs. __getattr__

2009-02-28 Thread Mike Meyer
Mike Meyer added the comment: The args attribute gets created by __init__ and nothing in the class removes it. I don't think it's unreasonable for the class to expect the attribute to not vanish on it. Possibly it should be spelled __args (or declared private :-), but neither of t

[issue5370] unpickling vs. __getattr__

2009-03-09 Thread Mike Meyer
Mike Meyer added the comment: I don't believe in documenting bugs instead of fixing them. If this bug is going to stay in the code, I can either fix my install of Python to have non-broken Pickle modules, or I can fix every third-party libraries objects I use whose authors didn't w

[issue5370] unpickling vs. __getattr__

2009-03-09 Thread Mike Meyer
Mike Meyer added the comment: QAD patch for 2.6 pickle.py to fix this bug. Passes the 2.6 pickle unit tests. -- message_count: 5.0 -> 6.0 Added file: http://bugs.python.org/file13290/pp ___ Python tracker <http://bugs.python.org/iss

[issue3392] subprocess fails in select when descriptors are large

2009-03-11 Thread Mike Coleman
Mike Coleman added the comment: I also ran into this bug. In my case I'm able to work around this by "reserving" some fds at the start of my program (open 20 reserved fds, open 2000 real fds, close 20 reserved fds), but this is both a kludge and not a general solution. Pro

[issue5370] unpickling vs. __getattr__

2009-03-13 Thread Mike Meyer
Mike Meyer added the comment: True. But hat's why it was a QAD hack - all I did was make sure it didn't blow up on the test code, and that it passed the provided unit tests. It really needs to walk the class tree. So something like hasattr(inst.__class__, '__setstate__'

[issue2986] difflib.SequenceMatcher not matching long sequences

2009-03-29 Thread Mike Rotondo
Mike Rotondo added the comment: >From the source, it seems that there is undocumented behavior to SequenceMatcher which is causing this error. If b is longer than 200 characters, it will consider any element x in b that takes up more than 1% of it's contents as "popular", a

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Mike Coleman
Mike Coleman added the comment: My original report didn't mention it specifically, but I believe I was hitting the FD_SETSIZE limit that Frank mentioned. (Thanks for working on this!) -- ___ Python tracker <http://bugs.python.org/i

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2009-03-31 Thread Mike Coleman
Mike Coleman added the comment: Just to confirm, the real problem here was that tiny packets were being sent out by default, and the obvious fix (altering ac_out_buffer_size) didn't work. Looking at the code, it appears that the change by Josiah Carlson (#64062) causes ac_out_buffer

[issue5826] new unittest function listed as assertIsNotNot() instead of assertIsNotNone()

2009-04-23 Thread Mike Rooney
New submission from Mike Rooney : On http://docs.python.org/dev/py3k/whatsnew/3.1.html under unittest changes, you will find the last new function listed is assertIsNotNot() instead of assertIsNotNone() -- assignee: georg.brandl components: Documentation messages: 86388 nosy

[issue5884] pydoc to return error status code

2009-04-29 Thread Mike Miller
New submission from Mike Miller : When pydoc is run from the command line and unable to write a file for a module because of a syntax error, it would be helpful to return a non-zero status code as a result. What it does currently: C:\>C:\python26\Lib\pydoc.py -w mymod problem

[issue5884] pydoc to return error status code

2009-05-06 Thread Mike Miller
Mike Miller added the comment: Ahh, I see ... I didn't explain my issue with much depth in haste. I don't usually run the test suite when I am in the process of updating code or docs, only when I'm done, then I check it in. So I was updating the docs and running pydoc with a l

[issue998998] pickle bug - recursively memoizing class?

2009-05-30 Thread mike bayer
mike bayer added the comment: im noticing my test case seems to work fine in py 3.0.1. haven't tested 2.6.2. -- ___ Python tracker <http://bugs.python.org/iss

[issue6149] WeakValueDictionary constructor ported to Python 3.0 incorrectly

2009-05-30 Thread mike bayer
New submission from mike bayer : The constructor for WeakValueDictionary does not obey the contract documented in its comments: # We inherit the constructor without worrying about the input # dictionary; since it uses our .update() method, we get the right # checks yet it

[issue6149] WeakValueDictionary constructor ported to Python 3.0 incorrectly

2009-05-30 Thread mike bayer
Changes by mike bayer : -- components: +Library (Lib) type: -> crash ___ Python tracker <http://bugs.python.org/issue6149> ___ ___ Python-bugs-list mai

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-05-28 Thread Mike Hobbs
New submission from Mike Hobbs : Condition.wait() without a timeout will never raise a KeyboardInterrupt: cond = threading.Condition() cond.acquire() cond.wait() *** Pressing Ctrl-C now does nothing *** If you pass a timeout to Condition.wait(), however, it does behave as expected

[issue8998] add crypto routines to stdlib

2010-06-14 Thread Mike Crute
Changes by Mike Crute : -- nosy: +mcrute ___ Python tracker <http://bugs.python.org/issue8998> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue2475] Popen.poll always returns None

2010-06-18 Thread Mike Lisanke
Mike Lisanke added the comment: Terry, I had long since coded around the problem. At this point, I no longer have the test environment to cause the intermittent conditions of the process hang. I could code something up, but; your question is the first response to this bug report since "

[issue9133] Invalid UTF8 Byte sequence not raising exception/being substituted

2010-06-30 Thread Mike Lewis
New submission from Mike Lewis : When I do codecs.encode(codecs.decode('\xed\xbc\xad', 'utf8'), 'utf8') its not throwing an exception. '\xed\xbc\xad' is an invalid UTF8 byte sequence. It maps to the value U+DF2D which is a "surrogate pair" it

[issue9133] Invalid UTF8 Byte sequence not raising exception/being substituted

2010-06-30 Thread Mike Lewis
Mike Lewis added the comment: Sorry, meant to add this part to the quote from the rfc: This leads to different results for character numbers above 0x; the CESU-8 encoding of those characters is NOT valid UTF-8 -- ___ Python tracker <h

[issue9269] Cannot pickle self-referencing sets

2010-07-15 Thread mike bayer
mike bayer added the comment: where is it defined that sets are not "supposed" to contain mutable items? such a requirement vastly limits the usefulness of sets. Consider that relational database rows are mutable. A result set containing multiple rows which each have a p

[issue9269] Cannot pickle self-referencing sets

2010-07-15 Thread mike bayer
mike bayer added the comment: OK, more specifically, here's the kind of situation where items in a set are mutable: company = Session.query(Company).first() # company.employees is a set() company.employees # each employee references the parent company for e in company.employees: a

[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-07-28 Thread mike bayer
New submission from mike bayer : I'm not optimistic that this will be reproducible elsewhere. I get a silent failure with 2.6 and a crash dialog with 2.7 with the following script. All elements are necessary, although the "pkg_resources" import may be arbitrary, and reprodu

[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-07-28 Thread mike bayer
mike bayer added the comment: right...so I would propose the function calls in question emit a warning or something when called in a child process. this would save lots of people many hours of grief. -- ___ Python tracker <h

[issue1274] doctest fails to run file based tests with 8bit paths

2010-07-31 Thread Mike Taylor
Mike Taylor added the comment: wow - that is some old bug history ;) I'm surprised the patch is even close to being valid On Sat, Jul 31, 2010 at 21:47, Dan Buch wrote: > > Dan Buch added the comment: > > @haypo - I'm not in favor of using the attached bug_3740_1.patch

[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-08-09 Thread mike bayer
mike bayer added the comment: Yeah we are fine if I build the release2.7-maint branch.Also just noticed that this bug prevents really basic things, like using urllib2 from a Pylons application that's running in "daemon" mode. Pretty major, though unusual that I have some

[issue29090] python34.dll crash

2016-12-27 Thread Mike Hobbs
New submission from Mike Hobbs: Only info (Windows event viewer): Faulting application python_cc.exe, version 0.0.0.0, faulting module python34.dll, version 3.4.3150.1013, fault address 0x001059b7 Note: python_cc.exe is renamed python.exe to identify it in task manager. OS is Windows XP SP3

<    1   2   3   4   5   6   7   >