[issue22167] iglob() has misleading documentation (does indeed store names internally)

2014-08-08 Thread Roy Smith
Roy Smith added the comment: How about something like this: Note: The current iglob() implementation is optimized for the case of many files distributed in a large directory tree. Internally, it iterates over the directory tree, and stores all the names from each directory at once. This

[issue20169] random module doc page has broken links

2014-01-07 Thread Roy Smith
New submission from Roy Smith: On http://docs.python.org/2/library/random.html, the links to random() go to the module, not the function. Thus: Almost all module functions depend on the basic function random(), If you lick on random(), you get to http://docs.python.org/2/library/random.html

[issue20169] random module doc page has broken links

2014-01-07 Thread Roy Smith
Roy Smith added the comment: Ugh, that should say, "if you CLICK on random()". Really wish I was filing this from my phone so I could blame it on autocorrect. -- ___ Python tracker <http://bugs.python.o

[issue20582] socket.getnameinfo() does not document flags

2014-02-10 Thread Roy Smith
New submission from Roy Smith: http://docs.python.org/2/library/socket.html The description for getnameinfo() says, "... Depending on the settings of flags, the result can contain a fully-qualified domain name or numeric address representation in host.", but does not say what t

[issue20582] socket.getnameinfo() does not document flags

2014-02-10 Thread Roy Smith
Roy Smith added the comment: What might make sense is for all of those, document the function call as taking "native_flags" (or something like that), with a single note at the top of the page saying, "native_flags means look up the specific values in the man page" and li

[issue20769] Reload() description is unclear

2014-02-25 Thread Roy Smith
New submission from Roy Smith: http://docs.python.org/2/library/functions.html#reload says: It is legal though generally not very useful to reload built-in or dynamically loaded modules, except for sys, __main__ and __builtin__. It is unclear what the "except for ..." part is re

[issue7325] tempfile.mkdtemp() does not return absolute pathname when dir is specified

2009-11-14 Thread Roy Smith
New submission from Roy Smith : The docs (http://www.python.org/doc/2.5.1/lib/module-tempfile.html) specify that mkdtemp(), "returns the absolute pathname of the new directory". It does that in the default case, but if you specify a relative path for 'dir', you get b

[issue3585] pkg-config support

2009-02-25 Thread Clinton Roy
Clinton Roy added the comment: Oh, you meant for me to reply =) - Do all unix-like system support pkg-config? Yes. It even works on windows. - Is $(LIBDIR)/pkgconfig the only choice for installing this file? While pkg-config can be told to look in other directories for pc files (via

[issue3585] pkg-config support

2009-05-05 Thread Clinton Roy
Clinton Roy added the comment: Hi Sol, It's just a data file I suppose, Python should not need a dependency on pkg-config, and neither should there be a python-pkgconfig package that just contains the python.pc file. I think the approach to just always install the python.pc file is the

[issue3585] pkg-config support

2009-05-24 Thread Clinton Roy
Clinton Roy added the comment: Not that I can see, or remember. Revised patch attached. Tyop fixed as well. Please note there seem to be some issues with svn head atm, pyconfig.h.in and configure would seem to be out of whack with configure.in, this patch does not include changes to those

[issue8756] Multiprocessing and UUID bug on Mac OSX

2010-05-18 Thread Gavin Roy
New submission from Gavin Roy : import multiprocessing import uuid def test(): print str(uuid.uuid4()) p = multiprocessing.Pool(processes=4) for x in xrange(0, 4): p.apply_async(test) In MacOS: Gavin-M-Roys-Office-iMac:kvpbench gmr$ python Python 2.6.1 (r261:67515, Feb 11 2010, 00:51

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Roy Williams
Roy Williams added the comment: > What about PYTHON_OPT and allowing to pass any options via an environment > > > variable? There is a number of precedences (gzip, less, etc). > >export PYTHON_OPT="-t -b -3" I'd be open to this, but it seems like a much

[issue22294] 2to3 consuming_calls: len, min, max, zip, map, reduce, filter, dict, xrange

2016-12-08 Thread Roy Williams
Changes by Roy Williams : -- nosy: +Roy Williams ___ Python tracker <http://bugs.python.org/issue22294> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29170] Curses Module should check for is_keypad and not window flags

2017-01-05 Thread Roy Marples
New submission from Roy Marples: checking whether WINDOW has _flags... no The ncurses library can be built with an opaque window structure. As such, it's not always possible to query it's flags. Luckily there is the is_keypad function which works regardless of how ncurses was built

[issue29170] Curses Module should check for is_keypad and not window flags

2017-01-05 Thread Roy Marples
Roy Marples added the comment: Remove WINDOW test Add is_keypad test Change #define in _cursesmodule.c -- keywords: +patch Added file: http://bugs.python.org/file46163/cursesmodule.patch ___ Python tracker <http://bugs.python.org/issue29

[issue29170] Curses Module should check for is_keypad and not window flags

2017-01-05 Thread Roy Marples
Roy Marples added the comment: It is, sorry for noise. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue29170> ___ ___ Python-bugs-lis

[issue17341] Poor error message when compiling invalid regex

2013-03-03 Thread Roy Smith
New submission from Roy Smith: >>> re.compile('(?P=)') Traceback (most recent call last): File "", line 1, in File "/home/roy/env/python/lib/python2.7/re.py", line 190, in compile return _compile(pattern, flags) File "/home/roy/env/python

[issue17626] set's __isub__ doesn't support non-sets.

2013-04-03 Thread Roy Wellington
New submission from Roy Wellington: The following: s = set(range(10)) s -= (1, 2, 3) raises a TypeError. Yet the following, which is more verbose and equivalent, succeeds: s.difference_update((1, 2, 3)) Under the hood, __isub__ calls difference_update to do its work. Unfortunately

[issue17629] Expose string width to Python

2013-04-06 Thread Roy Smith
Roy Smith added the comment: I'm the guy who was searching for astral characters in msg18597. I should mention that while what I did was certainly inefficient, the database was so much slower that it didn't have any observable impact on the overall process time (a bit over 2 days

[issue17629] Expose string width to Python

2013-04-06 Thread Roy Smith
Roy Smith added the comment: Um, make that msg185972. -- ___ Python tracker <http://bugs.python.org/issue17629> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22880] hmac.new docs show optional args incorrectly

2014-11-15 Thread Roy Smith
New submission from Roy Smith: At https://docs.python.org/2/library/hmac.html, hmac.new() is shown as hmac.new(key[, msg[, digestmod]]) This implies that digestmod can only be given if msg is given. This is incorrect. Either can be given without the other. -- assignee: docs@python

[issue26111] On Windows, os.scandir will keep a handle on the directory until the iterator is exhausted

2016-01-14 Thread Remy Roy
New submission from Remy Roy: On Windows, os.scandir will keep a handle on the directory being scanned until the iterator is exhausted. This behavior can cause various problems if try to use some filesystem calls like os.chmod or os.remove on the directory while the handle is still being kept

[issue26111] On Windows, os.scandir will keep a handle on the directory until the iterator is exhausted

2016-01-14 Thread Remy Roy
Remy Roy added the comment: I believe Eryk's explanation on how a file in Windows doesn't actually get unlinked until all handles and kernel pointer references are closed is spot on about the problem I had. I had a complex example that could probably have been simplified to what Er

[issue26111] On Windows, os.scandir will keep a handle on the directory until the iterator is exhausted

2016-01-14 Thread Remy Roy
Remy Roy added the comment: This issue is not same as Issue 25994 but it is quite related. Some kind of close() method and/or context manager support could help here as well. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26111] On Windows, os.scandir will keep a handle on the directory until the iterator is exhausted

2016-01-14 Thread Remy Roy
Remy Roy added the comment: >From my point of view, Issue 25994 is about the potential file >descriptor/handle leaks and this issue is about being unable to perform some >filesystem calls because of a hidden unclosed file descriptor/handle. I am not going to protest if you want to t

[issue27014] maximum recursion depth when using typing options

2016-05-13 Thread Roy Shmueli
New submission from Roy Shmueli: While creating class of List and using a Optional as part of the typing system. I have got an error when I was importing one of my module. I was able to simplify the problem by creating a one module that replicate the crash. -- files: bug.py messages

[issue28260] mock._Any and mock._Call implement __eq__ but not __hash__

2016-09-23 Thread Roy Williams
New submission from Roy Williams: I am investigating a migration to Python 3, and to facilitate this we are using the -3 flag as decribed here: https://docs.python.org/3/howto/pyporting.html#prevent-compatibility-regressions . When using this flag I encountered some issues inside of mock

[issue28260] mock._Any and mock._Call implement __eq__ but not __hash__

2016-09-23 Thread Roy Williams
Changes by Roy Williams : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue28260> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26219] implement per-opcode cache in ceval

2016-09-23 Thread Roy Williams
Changes by Roy Williams : -- nosy: +Roy Williams ___ Python tracker <http://bugs.python.org/issue26219> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28263] Python 2.7's `-3` flag warns about __eq__ being implemented without __hash__ even if __hash__ is never accessed.

2016-09-23 Thread Roy Williams
New submission from Roy Williams: I'm finding the -3 flag to be super useful at identifying problems with code when porting to Python 3. One of the most common failures, however, is "DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x". While impl

[issue28260] mock._Any and mock._Call implement __eq__ but not __hash__

2016-09-25 Thread Roy Williams
Roy Williams added the comment: Hey Antti My understanding is the version available on PyPi is now a strict backport of what's in Python 3, so they suggested filling the bug in bugs.python.org so it can be backported. http://lists.idyll.org/pipermail/testing-in-python/2016-September/0

[issue28260] mock._Any and mock._Call implement __eq__ but not __hash__

2016-09-25 Thread Roy Williams
Roy Williams added the comment: OK, let's close this issue and I'll ping the TIP thread/this issue again. On Sun, Sep 25, 2016, 11:16 AM Ned Batchelder wrote: > > Ned Batchelder added the comment: > > Roy, the code on GitHub isn't a literal copy of the Python

[issue28279] setuptools failing to read from setup.cfg only in Python 3.6

2016-09-26 Thread Roy Williams
New submission from Roy Williams: Howdy, I'm attempting to make a change to the mock package in Python (related to http://bugs.python.org/issue28260), and it appears their CI is broken in Python 3.6 only. The problem appears to originate from setuptools, but this only fails in Pytho

[issue28279] setuptools failing to read from setup.cfg only in Python 3.6

2016-09-26 Thread Roy Williams
Changes by Roy Williams : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue28279> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Roy Williams
New submission from Roy Williams: I'm finding the `-3` flag to be super useful, but it's quite a huge pain to thread it through all of the places that spawn python subprocesses, sometimes requiring forking of third party code. This would be much simpler if, like PYTH

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Roy Williams
Roy Williams added the comment: @Brett @Berker In a similar vein, it'd be great to expose the `-b` flag in Python 3 in a similar manner to test for invalid byte comparisons. -- ___ Python tracker <http://bugs.python.org/is

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-30 Thread Roy Williams
Roy Williams added the comment: Thanks for your support! Here's a patch to enable the `PYTHON3WARNINGS` environment variable. -- keywords: +patch Added file: http://bugs.python.org/file44894/pythonenable3kwarningsflag.patch ___ Python tr

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-03 Thread Roy Williams
Changes by Roy Williams : Added file: http://bugs.python.org/file44947/pythonenable3kwarningsflag.patch ___ Python tracker <http://bugs.python.org/issue28288> ___ ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-03 Thread Roy Williams
Roy Williams added the comment: Thanks for the feedback Berker. I addressed your feedback, but unfortunately I get a 500 from Rietveld when I try to attach a new patchset. I've uploaded the new patchset here. -- ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-04 Thread Roy Williams
Roy Williams added the comment: Thanks for the feedback Berker! This is my first CPython patch :D. Added in a note in pyporting. I actually did a much more detailed write up here https://gist.github.com/rowillia/c0feed97c1863b2d8e5a3ed73712df65, but it seems a bit verbose for this document

[issue10574] email.header.decode_header fails if the string contains multiple directives

2010-11-28 Thread Roy H. Han
New submission from Roy H. Han : email.header.decode_header fails for the following message subject: :: email.header.decode_header('=?UTF-8?B?MjAxMSBBVVRNIENBTEwgZm9yIE5PTUlO?==?UTF-8?B?QVRJT05TIG9mIFZQIGZvciBNZW1iZXJz?==?UTF-8?B?aGlw?=') If the directives are removed and t

[issue10574] email.header.decode_header fails if the string contains multiple directives

2010-11-28 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Currently using the following workaround. import re import email.header def decodeSafely(x): match = re.search('(=\?.*?\?B\?)', x) if not match: return x encoding = match.group(1) return email.header.decode_he

[issue10574] email.header.decode_header fails if the string contains multiple directives

2010-11-28 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Improved workaround to handle another degenerate case where the encoded string is in between non-encoded strings. import re import email.header pattern_ecre = re.compile(r'((=\?.*?\?[qb]\?).*\?=)', re.VERBOSE | re.IGNORECASE | re.MULTI

[issue10574] email.header.decode_header fails if the string contains multiple directives

2010-11-28 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: The following code seems to solve the first case just as well. It seems that it is a problem of missing whitespace. email.header.decode_header('=?UTF-8?B?MjAxMSBBVVRNIENBTEwgZm9yIE5PTUlO?==?UTF-8?B?QVRJT05TIG9mIFZQIGZvciBNZW1iZXJz?==?UTF-8?B?aGlw?=

[issue10574] email.header.decode_header fails if the string contains multiple directives

2011-01-22 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: 2010/11/30 R. David Murray : > Out of curiosity, which email program is it that is producing these invalid > headers? I lost the headers for the original email, so I don't know which email program created the invalid headers. On searching for me

[issue44244] protected members accessible in other modules

2021-05-26 Thread Nihar Ranjan Roy
New submission from Nihar Ranjan Roy : As per literature protected members are not accessible in other modules but I found that there is no difference between public and protected members in python 3.9.0 -- files: Screenshot (108).png messages: 394509 nosy: niharranjanroy priority

[issue44244] protected members accessible in other modules

2021-05-26 Thread Nihar Ranjan Roy
Nihar Ranjan Roy added the comment: Dear Dennis Thanx for the prompt reply. I am talking about protected members (those starting with single underscore). Take it other way, What is the difference between public and private membership in python? With Regards Nihar Ranjan Roy Mobile: +91 9810

[issue44244] protected members accessible in other modules

2021-05-26 Thread Nihar Ranjan Roy
Nihar Ranjan Roy added the comment: Thank you dennis. This is helpful. With Regards Nihar Ranjan Roy Mobile: +91 9810 977 908 ___ On Thu, May 27, 2021 at 10:47 AM Dennis Sweeney wrote: > > Dennis Sweeney added the comment: > > An attribute name starting w

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2018-04-01 Thread Marc Le Roy
Marc Le Roy added the comment: No solution found to solve this issue ? The anomaly is not a cross platform inconsistency, it is an inconsistency between the behaviours of GCC and ctypes, both under Linux or Cygwin, when defining packed structures : [Marc@I7-860 ~/dev/python/ctypes-bitfields

[issue31987] Ctypes Packing Bitfields Incorrectly - GCC both Linux and Cygwin

2017-11-08 Thread Marc Le Roy
New submission from Marc Le Roy : The structure : typedef struct __attribute__ ((packed)) { unsigned int F0:24; unsigned int F3:24; unsigned int F6:24; unsigned int F9:24; } StructF_T; is mapped as expected by GCC under both Linux and Cygwin. As expected, the memory layout

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2017-11-16 Thread Marc Le Roy
Change by Marc Le Roy : -- nosy: +mleroy003 ___ Python tracker <https://bugs.python.org/issue29753> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12641] Remove -mno-cygwin from distutils

2013-07-09 Thread Roy Ivy III
Changes by Roy Ivy III : -- nosy: +rivy ___ Python tracker <http://bugs.python.org/issue12641> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10574] email.header.decode_header fails if the string contains multiple directives

2012-07-04 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: > This is fixed by the fix to issue 1079, but we have decided that fix can't be > backported because it is a behavior change that might break existing working > programs. Thanks for this update. --

[issue1598] unexpected response in imaplib

2014-07-17 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Is imaplib choking on the IBM-specific X-MIMETrack header? Is Lotus Notes properly formatting the multi-line headers? Can RFC822 headers contain the PIPE | symbol? -- ___ Python tracker <http://bugs.python.

[issue1598] unexpected response in imaplib

2014-07-18 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Hi Lita, I no longer have access to a Domino server. I'm not sure whether there are enough users trying to access Domino with imaplib for this to warrant investigation. RHH -- ___ Python tracker

[issue1598] unexpected response in imaplib

2014-07-18 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Yes, I think closing this issue is reasonable. If the error reappears, we can just reopen it. -- ___ Python tracker <http://bugs.python.org/issue1

[issue1598] unexpected response in imaplib

2009-03-24 Thread Roy H. Han
Roy H. Han added the comment: I'm also getting the same error retrieving a message through IMAP from a Lotus Notes server. Traceback (most recent call last): File "mail.py", line 152, in if 'setup' == argument: setup() File "mail.py", lin

[issue1598] unexpected response in imaplib

2009-03-24 Thread Roy H. Han
Roy H. Han added the comment: Using a different format, it seems the message involves cryptographic keys signed by Lotus Notes? >>> server.fetch(407, '(BODY.PEEK[HEADER] FLAGS)') To: pers...@place.com Subject: subject Message-ID: Date: Tue, 28 Oct 2008 17:53:22 -0400 Fro

[issue24070] Exceptions and arguments disappear when using argparse inside with statement

2015-04-28 Thread Roy Hyunjin Han
New submission from Roy Hyunjin Han: Exceptions and arguments disappear when using argparse inside a "with" statement. The behavior was confusing and frustrating because I could not pinpoint why certain arguments were missing or unrecognized. Unhandled exceptions inside the with

[issue24070] Exceptions and arguments disappear when using argparse inside with statement

2015-05-06 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: The behavior may not be surprising from a technical perspective, but it is unintuitive. I think exceptions inside a with statement should trigger a traceback, unless you are saying that it is the responsibility of the author to catch and raise the exception

<    1   2