[issue46575] One-off errors in hashlib.scrypt error messages

2022-01-29 Thread Ron Kaminsky
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

[issue44489] _handle_existing_loggers should respect loggers that were manually disabled

2021-06-22 Thread Ron Serruya
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

[issue42992] Tkinter bbox coordinates incorrectly drawn

2021-01-22 Thread Ron Hoffmann
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

[issue42992] Tkinter bbox coordinates incorrectly drawn

2021-01-21 Thread Ron Hoffmann
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

Problem

2020-09-29 Thread Ron Villarreal via Python-list
Tried to open Python 3.8. I have Windows 10. Icon won’t open. -- https://mail.python.org/mailman/listinfo/python-list

modify python code as newbie

2020-01-17 Thread ron . eggler
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

Modify Python code as newbie

2020-01-17 Thread ron . eggler
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

[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-08 Thread Ron Serruya
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

[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-08 Thread Ron Serruya
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

[issue38529] Python 3.8 improperly warns about closing properly closed streams

2019-10-27 Thread Ron Frederick
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

[issue38529] Python 3.8 improperly warns about closing properly closed streams

2019-10-27 Thread Ron Frederick
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

[issue38529] Python 3.8 improperly warns about closing properly closed streams

2019-10-19 Thread Ron Frederick
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

[issue16438] Numeric operator predecence confusing

2018-09-04 Thread ron
ron added the comment: Any progress on this? -- nosy: +ronron ___ Python tracker <https://bugs.python.org/issue16438> ___ ___ Python-bugs-list mailing list Unsub

[issue34529] add the option for json.dumps to return newline delimited json

2018-09-02 Thread ron
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

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-30 Thread ron
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

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-29 Thread ron
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

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-28 Thread ron
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

[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2018-04-07 Thread Ron Reiter
Change by Ron Reiter <ron.rei...@gmail.com>: -- type: -> security ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33213> ___ __

[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2018-04-03 Thread Ron Reiter
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

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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'

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
Ron Reiter <ron.rei...@gmail.com> added the comment: You guessed it, the salt is "$6" -- ___ Python tracker <rep...@bugs.python.org> <https://b

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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

[issue25749] asyncio.Server class documented but not exported

2017-12-21 Thread Ron Frederick
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.

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Ron Frederick
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

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Ron Frederick
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

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Ron Frederick
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

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Ron Rothman
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

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Ron Rothman
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

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread Ron Barak
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

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread Ron Barak
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

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread Ron Barak
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

[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Ron Carr
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

[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Ron Carr
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

[issue26887] Erratum in https://docs.python.org/2.6/library/multiprocessing.html

2016-04-29 Thread Ron Barak
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

[issue25749] asyncio.Server class documented but not exported

2015-11-27 Thread Ron Frederick
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

[issue25033] Python 2.7.10 make - fails on some Standard Library Modules

2015-09-08 Thread Ron Barak
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

[issue24615] 'make install' fails installation of man pages for Python 2.7.10 on Unixware 7.1.4

2015-07-12 Thread Ron Barak
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

[issue24615] 'make install' fails installation of man pages for Python 2.7.10 on Unixware 7.1.4

2015-07-12 Thread Ron Barak
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

[issue24615] 'make install' fails installation of man pages for Python 2.7.10 on Unixware 7.1.4

2015-07-12 Thread Ron Barak
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

[issue24615] 'make install' fails installation of man pages for Python 2.7.10 on Unixware 7.1.4

2015-07-12 Thread Ron Barak
Changes by Ron Barak bugs_python_org.comve...@9ox.net: -- components: +Installation -Build ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24615

[issue24611] Compiling Python 2.7.10 Error on Unixware 7.1.4

2015-07-12 Thread Ron Barak
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

[issue24611] Compiling Python 2.7.10 Error on Unixware 7.1.4

2015-07-12 Thread Ron Barak
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

[issue24616] 'make install' fails installation of man pages for Python 2.7.10 on Unixware 7.1.4

2015-07-12 Thread Ron Barak
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

[issue24616] 'make install' fails installation of man pages for Python 2.7.10 on Unixware 7.1.4

2015-07-12 Thread Ron Barak
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

[issue24611] Compiling Python 2.7.10 Error on Unixware 7.1.4

2015-07-11 Thread Ron Barak
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

Re: (side-)effects and ...

2015-07-05 Thread Ron Adam
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

Re: Lawful != Mutable (was Can Python function return multiple data?)

2015-06-21 Thread Ron Adam
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

Re: Set a flag on the function or a global?

2015-06-16 Thread Ron Adam
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

Re: Set a flag on the function or a global?

2015-06-15 Thread Ron Adam
, 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

Re: Rule of order for dot operators?

2015-05-19 Thread Ron Adam
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

Re: Rule of order for dot operators?

2015-05-18 Thread Ron Adam
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

An experiment with blocks of object code and other meta ideas.

2015-04-27 Thread Ron Adam
in it's development, so don't expect too much at this time. Cheers, Ron -- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python - block grouping (spaces)

2015-04-19 Thread Ron Adam
. 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

Re: Great Math Mystery

2015-04-17 Thread Ron Adam
. 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

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-10-19 Thread Ron Adam
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

[issue18740] str is number methods don't recognize '.'

2013-08-14 Thread Ron Adam
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

[issue18740] str is number methods don't recognize '.'

2013-08-14 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-15 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-15 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-15 Thread Ron Adam
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

[issue18436] Add mapping of symbol to function to operator module

2013-07-14 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-14 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-14 Thread Ron Adam
Ron Adam added the comment: Updated the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18387 ___ ___ Python-bugs-list mailing list

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-14 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-07 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-07 Thread Ron Adam
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

[issue18387] Add 'symbols' link to html menu bar.

2013-07-06 Thread Ron Adam
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

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-06 Thread Ron Adam
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

[issue10716] Modernize pydoc to use better HTML and separate CSS

2013-03-01 Thread Ron Adam
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

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-12-02 Thread Ron Hubbard
Ron Hubbard added the comment: George.Peristerakis' patch works please apply -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9674 ___ ___ Python

Re: logger doesn't roll over

2012-11-21 Thread Ron Eggler
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

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-09-29 Thread Ron Hubbard
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

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-09-29 Thread Ron Hubbard
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

[issue16065] Python/distutils setup.py: passing --prefix / makes --root ignored

2012-09-27 Thread Ron Hubbard
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

[issue16065] Python/distutils setup.py: passing --prefix / makes --root ignored

2012-09-27 Thread Ron Hubbard
Changes by Ron Hubbard nico.nelson-91c8...@yopmail.com: -- type: - security ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16065 ___ ___ Python

[issue16065] Python/distutils setup.py: passing --prefix / makes --root ignored

2012-09-27 Thread Ron Hubbard
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

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-09-27 Thread Ron Hubbard
Changes by Ron Hubbard nico.nelson-91c8...@yopmail.com: -- type: - resource usage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13028

Re: serial module

2012-05-22 Thread Ron Eggler
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

serial module

2012-05-18 Thread Ron Eggler
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

[issue13659] Add a help() viewer for IDLE's Shell.

2011-12-30 Thread Ron Adam
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

[issue13607] Move generator specific sections out of ceval.

2011-12-23 Thread Ron Adam
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

[issue13607] Move generator specific sections out of ceval.

2011-12-23 Thread Ron Adam
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

[issue13607] Move generator specific sections out of ceval.

2011-12-21 Thread Ron Adam
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

[issue13607] Move generator specific sections out of ceval.

2011-12-18 Thread Ron Adam
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

[issue13607] Move generator specific sections out of ceval.

2011-12-18 Thread Ron Adam
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

[issue13607] Move generator specific sections out of ceval.

2011-12-15 Thread Ron Adam
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

[issue13607] Move generator specific sections out of ceval.

2011-12-15 Thread Ron Adam
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

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Ron Adam
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

[issue11682] PEP 380 reference implementation for 3.3

2011-12-06 Thread Ron Adam
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

Re: LinuxJournal Readers' Choice Awards 2011 Best {Programming, Scripting} Language

2011-12-05 Thread Ron
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

Re: Django ported to Python3!

2011-12-03 Thread Ron
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

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Ron Adam
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

Django ported to Python3!

2011-12-02 Thread Ron
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

[issue13062] Introspection generator and function closure state

2011-10-10 Thread Ron Adam
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

Re: Python without a tty

2011-09-29 Thread ron
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

Re: How do I automate the removal of all non-ascii characters from my code?

2011-09-13 Thread ron
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   2   3   4   5   6   7   8   9   10   >