New submission from Ron Kaminsky :
There are one-off errors in upper bounds given in the error messages for
hashlib.scrypt(...). MAX_INT *is* accepted (and at least for maxmem, works).
See
https://github.com/python/cpython/blob/8fb36494501aad5b0c1d34311c9743c60bb9926c/Modules/_hashopenssl.c
New submission from Ron Serruya :
The method `_handle_existing_loggers` in the logging lib (called when
configuring loggers using dictConfig) iterates over all existing loggers and
sets their .disabled attribute according to the `disable_existing_loggers`
parameter (usually set to false
Ron Hoffmann added the comment:
Thank you for your response. I have been fighting this issue in a large piece
of code for quite some time.
So I wrote a small test script as you asked for and the problem will not
reproduce. All behaviour of code is as expected.
I must therefore assume
New submission from Ron Hoffmann :
position coordinates retrieved from any object on a canvas with
pos = canvas.bbox(object) are returned correctly
but when drawn on the canvas (x0,y0) are correct, but
(x1, y1) are not drawn in the proper positions. x1 has been divided by 2
somewhere and y1
Tried to open Python 3.8. I have Windows 10. Icon won’t open.
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I'm semi new to Python but need to modify a program that calls the
mqtt_client.publish() function from aws iot.
Now, when the publish function fails, it raises an exception. I need to change
the code so that when an exception is raised, instead of giving up, it should
retry
Hi,
I'm semi new to Python but need to modify a program that calls the
mqtt_client.publish() function from aws iot.
Now, if the publish function fails, it raises an exception. I need to change
the code so that when an exception is raised, instead of giving up, it should
retry.
Here's some
Ron Serruya added the comment:
Sending Context.run to another process via ProccessPoolExecutor hangs forever:
```
from contextvars import ContextVar, copy_context
from concurrent.futures import ProcessPoolExecutor
from multiprocessing import Process
var: ContextVar[int] = ContextVar('var
New submission from Ron Serruya :
Sending Context.run to another process via ProccessPoolExecutor hangs forever:
```
from contextvars import ContextVar, copy_context
from concurrent.futures import ProcessPoolExecutor
from multiprocessing import Process
var: ContextVar[int] = ContextVar('var
Ron Frederick added the comment:
Sorry, I should have said that the change below was in the file
asyncio/streams.py.
--
___
Python tracker
<https://bugs.python.org/issue38
Ron Frederick added the comment:
I think the following change might address this problem:
***
*** 233,239
def _on_reader_gc(self, wr):
transport = self._transport
! if transport is not None:
# connection_made was called
New submission from Ron Frederick :
In testing AsyncSSH against Python 3.8, I noticed a large number of the
following errors, even though I was properly closing streams before the objects
holding them were garbage-collected.
An open stream object is being garbage collected; call
ron added the comment:
Any progress on this?
--
nosy: +ronron
___
Python tracker
<https://bugs.python.org/issue16438>
___
___
Python-bugs-list mailing list
Unsub
ron added the comment:
Well... when handling GBs of data - it's preferred to generate the file
directly in the required format rather than doing conversions.
The new line is a format... protocols don't matter here...
I still think the library should allow the user to create this format
ron added the comment:
I'm a bit confused here.
On one hand you say it's two lines of code. On other hand you suggest that each
service provider will implement it's own functions.
What's the harm from adding - small , unbreakable functionality?
Your points for small code could have also
ron added the comment:
Raymond Hettinger answer is incorrect.
The main difference between Json and new line delimited json is that new line
contains valid json in each line. Meaning you can do to line #47 and what you
will have in this line is a valid json. Unlike the regular json where
New submission from ron :
Many service providers such as Google BigQuery do not accept Json.
They accept newline delimited Json.
https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json#limitations
please allow to receive this format directly from the dump.
--
messages
Change by Ron Reiter <ron.rei...@gmail.com>:
--
type: -> security
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33213>
___
__
Change by Ron Reiter <ron.rei...@gmail.com>:
--
title: crypt function not hashing properly -> crypt function not hashing
properly on Mac (uses a specific salt)
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
Ron Reiter <ron.rei...@gmail.com> added the comment:
Also:
>>> crypt.crypt("test", "$5")
'$5yVOkTkyRzn.'
>>> crypt.crypt("test", "$6")
'$6asQOJRqB1i2'
>>> crypt.crypt("test", "$7")
'$7tSOkvDyiL6U'
Ron Reiter <ron.rei...@gmail.com> added the comment:
Python 3.6.4 (default, Mar 22 2018, 23:35:12)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more infor
Ron Reiter <ron.rei...@gmail.com> added the comment:
Apparently it's a Mac issue. My crypt.methods only contains
[] which is probably why this fails. It's a silent failure
of some sort that is causing this.
--
___
Python tracke
Ron Reiter <ron.rei...@gmail.com> added the comment:
You guessed it, the salt is "$6"
--
___
Python tracker <rep...@bugs.python.org>
<https://b
Ron Reiter <ron.rei...@gmail.com> added the comment:
import crypt
Expected result:
>>> crypt.crypt("test") == crypt.crypt("test")
False
>>> crypt.crypt("test", crypt.mksalt()) == crypt.crypt("test", crypt.mksalt())
False
New submission from Ron Reiter <ron.rei...@gmail.com>:
import crypt
Expected result:
>>> crypt.crypt("test") == crypt.crypt("test")
False
>>> crypt.crypt("test", crypt.mksalt()) == crypt.crypt("test", crypt.mksalt())
False
Ron Frederick <r...@timeheart.net> added the comment:
> I think you're doing it the right way. It's a rather niche requirement, so I
> don't think we should make create_server to somehow support this use case.
Agreed.
> asyncssh looks absolutely amazing, btw.
Ron Frederick <r...@timeheart.net> added the comment:
That'd be great if you could add AbstractServer to the 3.7 docs - thanks!
Regarding the other issue, I'm already set up to use multiple asyncio.Server
objects to deal with the shared port issue and it's working fine. It di
Ron Frederick <r...@timeheart.net> added the comment:
Thanks. Unfortunately, in the case of the way SSH listeners with dynamic ports,
the protocol only allows a single port number to be returned. So, when binding
on multiple interfaces there's a requirement that the SAME port be
Ron Frederick <r...@timeheart.net> added the comment:
In my original report, I suggested _either_ exporting asyncio.Server since
that's what was documented elsewhere _OR_ adding AbstractServer to the
documentation and changing existing references to asyncio.Server to
Ron Rothman <ron.roth...@gmail.com> added the comment:
Confirmed that the behavior exists in Python 3.6 as well.
--
versions: +Python 3.6
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
New submission from Ron Rothman <ron.roth...@gmail.com>:
mock.mock_open works as expected when reading the entire file (read()) or when
reading a single line (readline()), but it seems to not support reading a
number of bytes (read(n)).
These work as expected:
from mock import moc
Ron Barak added the comment:
Can I apply
http://bugs.python.org/file44208/3.5-issue21085-struct_siginfo-2.patch to 3.6
as is?
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Ron Barak added the comment:
Re: Cygwin is an unsupported platform.
Currently, from the contents of Python-3.6.0b1, one may be led to believe that
Cygwin _is_ supported, e.g. - see the references to Cygwin in the README file:
$ grep -i cygwin README
On Unix, Linux, BSD, OSX, and Cygwin:
find
New submission from Ron Barak:
Successfully did:
$ gunzip Python-3.6.0b1.tgz
$ tar xvf Python-3.6.0b1.tar
$ pushd Python-3.6.0b1
$ ./configure --disable-ipv6 --with-optimizations
However, when trying to do:
$ make profile-opt
I get:
...
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g
Ron Carr added the comment:
Hi Nosy and Brett,
I worked it out, even though I turned off the virus checker it was still in
memory. I had to right click on the install file, then select allow
install, it then completed successfully.
Regards,
Ron
On Tue, Aug 16, 2016 at 2:44 AM, Brett Cannon
New submission from Ron Carr:
Hi,
I am unable to install Python 3.6.0, 3.5.2 and 2.7.12, on my Windows 10 64 bit
system, receive error message "A required privilege is not held by the client".
I have turned UAC, and changed registry setting to zero. Also have ensured my
Adminis
New submission from Ron Barak:
Erratum in https://docs.python.org/2.6/library/multiprocessing.html:
The chunksize argument is the same as the one used by the map() method. For
very long iterables using a large value for chunksize can make >>>make<<< the
job complete much
New submission from Ron Frederick:
The asyncio documentation defines the class 'asyncio.Server' in section
18.5.1.15. However, this class is not exported by asyncio. It is defined in
base_events.py but not in the __all__ list. The only class exported at the
asyncio top level
New submission from Ron Barak:
UnixWare7 only supports Python 1.6
I added Python 2.7.10 from sources.
Python works, but its make did not finish cleanly: several Standard Library
modules failed to build (see attached: it has to be a screenshot since
VirtualBox does not support cut-and-paste
Ron Barak added the comment:
EDIT 1 (cut and paste had some extraneous data):
I wanted to add Python 2.7 to Unix.
I downloaded the sources to the VirtualBox on which the Unix is installed.
./configure is successful.
make is successful after I manually applied the changes in
http
Changes by Ron Barak bugs_python_org.comve...@9ox.net:
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24615
New submission from Ron Barak:
I wanted to add Python 2.7 to Unix.
I downloaded the sources to the VirtualBox on which the Unix is installed.
./configure is successful.
make is successful after I manually applied the changes in
http://bugs.python.org/issue24611
However, 'make install' fails
Changes by Ron Barak bugs_python_org.comve...@9ox.net:
--
components: +Installation -Build
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24615
Ron Barak added the comment:
I tried to apply the patch. Alas, I get an Hmm... I can't seem to find a patch
in there anywhere. error.
See attached screenshot.
Did I apply the patch incorrectly?
--
Added file: http://bugs.python.org/file39909/issue24611.PNG
Ron Barak added the comment:
When I try to apply the patch manually, namely - editing Modules/posixmodule.c,
and moving the #endif a few lines up, the make finishes correctly.
So, the patch does work: I'm probably not applying it correctly.
Could you point to my error in applying the patch
New submission from Ron Barak:
I wanted to add Python 2.7 to Unix.
I downloaded the sources to the VirtualBox on which the Unix is installed.
./configure is successful.
make is successful after I manually applied the changes in
http://bugs.python.org/issue24611
However, 'make install' fails
Ron Barak added the comment:
@Serhiy,
Not only would posting text be clearer, but much easier.
Alas, the Unixware I use is on a VirtualBox, and VitualBox does not support
Guest Extension on Unixware - which means that neither cut-and-paste nor
sharing host filesystem are possible.
So, unless
New submission from Ron Barak:
I wanted to add Python 2.7 to Unix.
I downloaded the sources to the VirtualBox on which the Unix is installed and
run
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
without problems.
However, when I try
of an expressions?
Variables that are changed from an outside environment are Volatile.
https://en.wikipedia.org/wiki/Volatile_%28computer_programming%29
It isn't used in python, though I think maybe it should be.
Cheers,
Ron
--
https://mail.python.org/mailman/listinfo/python-list
by default.
I think it will be needed to test how any of the above is working.
It may also allow some multiprocessing just by avoiding raising any
MutatedObject exceptions.
Cheers,
Ron
--
https://mail.python.org/mailman/listinfo/python-list
On 06/16/2015 05:15 AM, Steven D'Aprano wrote:
On Tuesday 16 June 2015 10:24, Ron Adam wrote:
Another way is to make it an object with a __call__ method.
The the attribute can be accessed from both outside and inside dependably.
That's what functions are, objects with a __call__ method
, which
this would be. Go for the function attribute IMO.
Another way is to make it an object with a __call__ method.
The the attribute can be accessed from both outside and inside dependably.
Cheers,
Ron
--
https://mail.python.org/mailman/listinfo/python-list
On 05/19/2015 02:25 AM, Chris Angelico wrote:
On Tue, May 19, 2015 at 12:43 PM, Ron Adamron3...@gmail.com wrote:
Having just implementing something similar for nested scopes, it turns out
it can't be operators because if it was, then the names y and z would be
resolved in the wrong scope
with closures, but you need to delay
name resolution to do that. Which is what the . does.
Pythons attribute lookup is a bit more complex than this of course.
https://docs.python.org/3.4/howto/descriptor.html
Cheers,
Ron
--
https://mail.python.org/mailman/listinfo/python-list
in it's development, so don't expect too much at this
time.
Cheers,
Ron
--
https://mail.python.org/mailman/listinfo/python-list
.
The token file format becomes the bridge that spans the gap between the
user/editor and the compiler/interpreter.
Then your compiler/interpreter is all implementation details that work on a
single standardised token file format rather than unformatted text files.
Ron
--
https://mail.python.org
.
Percentage of incorrect judgements of people in safe, but perceived
dangerousness conditions.. etc...
Would be possible to calculate a norm or average from that kind of info?
It is also the type of number people don't want to know about or discuss.
-Ron
I made no comment on the OP's
the whole braces are good/evil is over stated. There
are lots of more important things in languages to consider.
Cheers,
Ron
--
https://mail.python.org/mailman/listinfo/python-list
Ron Adam added the comment:
Adding you Nick, I don't have commit rights. This probably doesn't need much..
maybe a one line comment in news is all. (And maybe not even that.)
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http
New submission from Ron Adam:
Shouldn't at least isdecimal return True?
'123.0'.isdecimal()
False
'123.0'.isalnum()
False
'123.0'.isnumeric()
False
'123.0'.isdigit()
False
--
components: Interpreter Core
messages: 195186
nosy: ron_adam
priority: normal
severity: normal
status: open
Ron Adam added the comment:
I get the same resluts if I make the string by str(123.0). I was thinking it
should test True for the isdecimal case for that.
It seems I missunderstood their purpose/use. This seems like it would be a
very common misunderstanding.
It appears, (Because it isn't
Changes by Ron Adam ron3...@gmail.com:
Removed file: http://bugs.python.org/file30922/pdoc_symbols.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18387
Ron Adam added the comment:
Patch update: removed from pydoc symbols table.
--
Added file: http://bugs.python.org/file30931/pdoc_symbols.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18387
Ron Adam added the comment:
I agree the specific content for each symbol are separate issues. Those are
probably best addressed individually or a few at a time when they are closely
related.
--
___
Python tracker rep...@bugs.python.org
http
Ron Adam added the comment:
Regarding opertor.get_op:
Look at help(symbols) output for consistancy. There may be items in one that
can be included in the other.
The operator.get_op addition would be useful for improving help on the symbol
information for help/pydoc. Currently it seems
Ron Adam added the comment:
Thanks for catching that. I had used unquote_plus instead of unquote. That is
needed for multi-field form data, pydoc doens't need it.
Removed the back tick from the pydoc symbols list. The topic link for that
symbol was already removed.
I also attempted
Ron Adam added the comment:
Updated the patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18387
___
___
Python-bugs-list mailing list
Changes by Ron Adam ron3...@gmail.com:
Removed file: http://bugs.python.org/file30843/pdoc_symbols.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18387
Changes by Ron Adam ron3...@gmail.com:
Removed file: http://bugs.python.org/file30831/pdoc_symbols.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18387
Ron Adam added the comment:
New slightly improved patch. Combined the topic index's, topics, keywords, and
the new symbols case, into a single html_topicsindex(title) function.
--
Added file: http://bugs.python.org/file30843/pdoc_symbols.diff
New submission from Ron Adam:
This patch adds a 'symbols' link after the 'topics' and 'keywords' links in the
html browser menu bar.
help('symbols') worked, but there was no way to get to it in the html browser.
This also adds unquote_plus() to the url handler to unquote the html input form
Changes by Ron Adam ron3...@gmail.com:
--
title: Add 'symbols' link to html menu bar. - Add 'symbols' link to pydoc's
html menu bar.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18387
Ron Adam added the comment:
I'm going to go over this issue again with fresh eyes after having been away
for some time.
Recent experience with another project has helped answer some of the questions
I had earlier. Particulary, how not to over specifying class names and id's.
This should
Ron Hubbard added the comment:
George.Peristerakis' patch works
please apply
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9674
___
___
Python
Hooops sh*t! I outsmarted myself I guess... :o
However, Thanks for the kick GC!
Ron Eggler
1804 - 1122 Gilford St.
Vancouver, BC
V6G 2P5
(778) 230-9442
On 12-11-21 11:41 AM, Gary Chambers wrote:
Ron,
LOGFILE, maxBytes=(1048576*10), backupCount=5
What am I doing wrong here, I don't get
Ron Hubbard added the comment:
this is a very ugly bug and should be fixed ASAP
it's not only breaking python itself, but any package that uses this python
installer, for example
http://seclists.org/nmap-dev/2012/q3/1025
what is preventing a merge of the existing patch
Ron Hubbard added the comment:
i'll try to reproduce this later.
looking at the below strace output, python's behaviour seems pretty stupid tho,
for example if /lib is the only existing path out of /lib, /lib64, /usr/lib/,
/usr/local/lib, etc etc, it should check for all these directories
New submission from Ron Hubbard:
setup.py loses the DESTDIR aka --root iff / is passed as prefix
http://seclists.org/nmap-dev/2012/q3/1025
I can reproduce this now, but only with a prefix of /. For example,
this works:
$ python setup.py install --prefix /a --root /home/david/destdir
copying
Changes by Ron Hubbard nico.nelson-91c8...@yopmail.com:
--
type: - security
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16065
___
___
Python
Ron Hubbard added the comment:
python 2.7.2 installation:
CFLAGS=-D_GNU_SOURCE -D_BSD_SOURCE ./configure -C --prefix=/ || exit 1
make -j9 || exit 1
make DESTDIR=//opt/python install || exit 1
what python generates out of
--install-scripts=//bin \
--install-platlib=//lib
Changes by Ron Hubbard nico.nelson-91c8...@yopmail.com:
--
type: - resource usage
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13028
Grant Edwards wrote:
On 2012-05-19, Paul Simon psi...@sonic.net wrote:
Ron Eggler rondotegg...@tscheemail.com wrote:
[...] my code looks like this:
#!/usr/bin/python
[...]
port='/dev/ttyUSB0',
Sounds like you may be using this on a Windows machine.
I don't think so
differs on the device
# you are connecting to)
ser = serial.Serial(
port='/dev/ttyUSB0',
baudrate=19200,
parity=serial.PARITY_ODD,
stopbits=serial.STOPBITS_TWO,
bytesize=serial.SEVENBITS
)
ser.open()
Why do I get this error?
Thank you,
Ron
--- Posted via
Ron Adam ron3...@gmail.com added the comment:
What about having idle open a web browser session with pydocs new browse option?
python3 -m pydoc -b
We've added input fields to the pages that take the same input as help()
command does. It also links to the online help pages, and you can view
Changes by Ron Adam ron3...@gmail.com:
Removed file: http://bugs.python.org/file24047/f_why1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13607
Ron Adam ron3...@gmail.com added the comment:
Updated patch with suggested changes.
It also has a cleaned up fast_block_end section.
Concerning speed. What happens is (as Tim and Raymond have pointed out) that we
can make some things a little faster, in exchange for other things being
Ron Adam ron3...@gmail.com added the comment:
I think the time benefits I saw are dependent on how the C code is compiled.
So it may be different on different compilers or the same compiler with only a
very minor change.
Some of the things I've noticed...
A switch is sometimes slower
Changes by Ron Adam ron3...@gmail.com:
Removed file: http://bugs.python.org/file23969/f_why.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13607
Ron Adam ron3...@gmail.com added the comment:
New diff file.
The main difference is I moved the saved why value to the tstate object instead
of the frame object as why_exit.
I'm not seeing the time savings now for some reason. Maybe the previous
increase was a case of coincidental noise
New submission from Ron Adam ron3...@gmail.com:
The following changes cleanup the eval loop and result in a pretty solid 2 to
3% improvement in pybench for me.
And it is about 5% faster for long generators.
* Change why enum type to int and #defines. And moved the why defines to
opcode.h so
Ron Adam ron3...@gmail.com added the comment:
A simple test to show the difference.
BEFORE:
$ python3 -mtimeit def y(n): for x in range(n): yield x
sum(y(10))
10 loops, best of 3: 3.87 usec per loop
$ python3 -mtimeit def y(n): for x in range(n): yield x
sum(y(100))
10
Ron Adam ron3...@gmail.com added the comment:
Thanks for the updated links Nick.
There is a comment in the docs that recommends putting parentheses around any
yield expression that returns a value. So it is in agreement with that in the
function argument case.
The grammar I used does keep
Ron Adam ron3...@gmail.com added the comment:
There is a test for 'yield from' as a function argument without the extra
parentheses.
f(yield from x)
You do need them in the case of a regular yield.
f((yield)) or f((yield value))
Shouldn't the same rule apply in both cases
Hello Wesley,
Thanks for the interesting news from Linux Journal.
Now, enquring minds want to know, when will there be a Core Python 3?
Ron :-)
--
http://mail.python.org/mailman/listinfo/python-list
Python folks will finally start
to take Python 3 seriously only when Django does announce official
support.
Ron
--
http://mail.python.org/mailman/listinfo/python-list
Ron Adam ron3...@gmail.com added the comment:
Instead of a get_instructions() function, How about using a DisCode class that
defines the API for accessing Opinfo tuples of a disassembled object.
So instead of...
for instr in dis.bytecode_instructions(thing):
process(instr)
You
It looks like Vinay Sajip has succeeded in porting Django to Python3
(in a shared code base for Python 3.2 and Python 2.7). This is an
astoundingly good job, done very fast and is big news.
See https://groups.google.com/forum/#!topic/django-developers/XjrX3FIPT-U
and the actual code is at
Changes by Ron Adam ron3...@gmail.com:
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13062
___
___
Python-bugs-list mailing
On Sep 29, 5:21 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
I have a Python script which I would like to test without a tty attached
to the process. I could run it as a cron job, but is there an easier way?
I am running Linux.
--
Steven
Have you tried GNU Screen? It
On Sep 12, 4:49 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Mon, 12 Sep 2011 06:43 pm Stefan Behnel wrote:
I'm not sure what you are trying to say with the above code, but if it's
the code that fails for you with the exception you posted, I would guess
that the
1 - 100 of 940 matches
Mail list logo