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
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
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
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
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
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
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
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
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
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
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
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
Changes by Roy Williams :
--
nosy: +Roy Williams
___
Python tracker
<http://bugs.python.org/issue22294>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Roy Marples added the comment:
It is, sorry for noise.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue29170>
___
___
Python-bugs-lis
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
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
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
Roy Smith added the comment:
Um, make that msg185972.
--
___
Python tracker
<http://bugs.python.org/issue17629>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Changes by Roy Williams :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue28260>
___
___
Python-bugs-list mailing list
Unsubscrib
Changes by Roy Williams :
--
nosy: +Roy Williams
___
Python tracker
<http://bugs.python.org/issue26219>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Changes by Roy Williams :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue28279>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
Changes by Roy Williams :
Added file: http://bugs.python.org/file44947/pythonenable3kwarningsflag.patch
___
Python tracker
<http://bugs.python.org/issue28288>
___
___
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
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
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
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
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
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?=
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
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
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
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
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
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
Change by Marc Le Roy :
--
nosy: +mleroy003
___
Python tracker
<https://bugs.python.org/issue29753>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Roy Ivy III :
--
nosy: +rivy
___
Python tracker
<http://bugs.python.org/issue12641>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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.
--
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.
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
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
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
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
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
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
101 - 160 of 160 matches
Mail list logo