[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > 100% pure SeaHash does x ^= t at the start first, instead of `t ^ (t << 1)` > on the RHS. Indeed. Some initial testing shows that this kind of "input mangling" (applying such a permutation on the inputs) actually plays a much more important role to avoid

[issue34871] test_site fails if run after test_inspect

2018-10-02 Thread Chih-Hsuan Yen
New submission from Chih-Hsuan Yen : $ ./python -m test.regrtest test_inspect test_site Run tests sequentially 0:00:00 load avg: 0.03 [1/2] test_inspect 0:00:00 load avg: 0.03 [2/2] test_site test test_site failed -- Traceback (most recent call last): File

Re: This thread is closed [an actual new thread]

2018-10-02 Thread Ian Kelly
On Tue, Oct 2, 2018 at 4:50 AM Rhodri James wrote: > > On what grounds are you suppressing debate? It is exactly and precisely > not irrelevant to Python, since it's discussing a Python-specific change > to known and understood computing terminology, and frankly the statement > "Continued

[issue34871] test_site fails if run after test_inspect

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: You can try to limit the number of tests needed to reproduce the bug using: ./python -m test.bisect -n 5 test_inspect test_site -- nosy: +vstinner ___ Python tracker

Re: python not working on RHEL6

2018-10-02 Thread Chris Angelico
On Wed, Oct 3, 2018 at 12:20 AM Madushan Chathuranga wrote: > > Hi, > > when I type python2.6 terminal opens for python. So no issue on that. but > when I type python2.7, python or any yum command It gives the error, > python: error while loading shared libraries: libpython2.7.so.1.0: cannot >

Re: python not working on RHEL6

2018-10-02 Thread Madushan Chathuranga
Hi, when I type python2.6 terminal opens for python. So no issue on that. but when I type python2.7, python or any yum command It gives the error, python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory Thanks --

Error after installing python 2.7.5 on rhel6

2018-10-02 Thread Madushan Chathuranga
Hi All, I'm a beginner on this. I tried to install python 2.7.5 on my rhel6 os. It already had installed 2.6.6. I downloaded the tar and unzipped it the executed below command. ./configure --prefix=/usr \ --enable-shared \ --with-system-expat \

Re: This thread is closed [an actual new thread]

2018-10-02 Thread Grant Edwards
On 2018-10-02, Rhodri James wrote: > On 02/10/18 01:02, Ethan Furman wrote: > On what grounds are you suppressing debate? It is exactly and precisely > not irrelevant to Python, since it's discussing a Python-specific change > to known and understood computing terminology, and frankly the

Re: How to change '\\' to '\'

2018-10-02 Thread Chris Angelico
On Wed, Oct 3, 2018 at 12:05 AM Dennis Lee Bieber wrote: > > On Tue, 2 Oct 2018 10:17:27 +0800, Jach Fong > declaimed the following: > > > >It was supposed that most discussant want to see the reply message > >instantly when they open the mail. They already know what is going on > >and no need

Re: python not working on RHEL6

2018-10-02 Thread Chris Angelico
On Wed, Oct 3, 2018 at 12:01 AM wrote: > > Hi All, > > I'm a beginner on this. I was trying to install a new python version which is > 2.7.5. My OS(RHEL6) had already installed version 2.6. so I downloaded the > tar and unzipped it then executed > > ./configure --prefix=/usr \ >

python not working on RHEL6

2018-10-02 Thread mchathuranga4
Hi All, I'm a beginner on this. I was trying to install a new python version which is 2.7.5. My OS(RHEL6) had already installed version 2.6. so I downloaded the tar and unzipped it then executed ./configure --prefix=/usr \ --enable-shared \

[issue34867] Add mode to disable small integer and interned string caches

2018-10-02 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: > 2018-10-02 11:02:32 Michael.Feltset files: + mime-attachment, > encrypted.asc You replied with an encrypted message which isn't understood by the bug tracker. -- ___ Python tracker

Re: Replacing : with "${" at the beginning of the word and adding "}" at the end of the word

2018-10-02 Thread zljubisic
I have to execute the same sql in two different programs. Each of them marks parameters differently. Anyway, I have found the solution. cnv_sel = re.sub(r"(:(.+?)\b)", r"${\2}", sel) Reagards. -- https://mail.python.org/mailman/listinfo/python-list

[issue34812] [EASY] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag

2018-10-02 Thread Danish Prakash
Danish Prakash added the comment: Thank you Karthikeyan, I'm going to take care of both of these issues. -- ___ Python tracker ___

Re: Replacing : with "${" at the beginning of the word and adding "}" at the end of the word

2018-10-02 Thread Chris Angelico
On Tue, Oct 2, 2018 at 10:36 PM wrote: > > Hi, > > if I have a string: > > sql = """ > where 1 = 1 > and field = :value > and field2 in (:list) > """ > > I would like to replace every word that starts with ":" in the following way: > 1. replace ":" with "${" > 2. at the end of the word add "}" >

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Correction: the FNV variant of SeaHash only fails the new testsuite, not the old one. The DJB variant of SeaHash fails both. -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: SeaHash seems to be designed for 64 bits. I'm guessing that replacing the shifts by x ^= ((x >> 16) >> (x >> 29)) would be what you'd do for a 32-bit hash. Alternatively, we could always compute the hash with 64 bits (using uint64_t) and then truncate at

Replacing : with "${" at the beginning of the word and adding "}" at the end of the word

2018-10-02 Thread zljubisic
Hi, if I have a string: sql = """ where 1 = 1 and field = :value and field2 in (:list) """ I would like to replace every word that starts with ":" in the following way: 1. replace ":" with "${" 2. at the end of the word add "}" An example should look like this: where 1 = 1 and field =

[issue34812] [EASY] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag

2018-10-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Thanks for bringing this up Karthikeyan, however, could there be another > reason why -I would be left out. Also, have you filed an issue for this? I couldn't see any related issue for this though the table was changed in 3.7.0 > Also, Victor

[issue34812] [EASY] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag

2018-10-02 Thread Danish Prakash
Danish Prakash added the comment: > With respect to documentation I was talking about '-I' not being documented > in the table at https://docs.python.org/3.7/library/sys.html#sys.flags though > it's present in the C code and in sys.flags.isolated. Thanks for bringing this up Karthikeyan,

ANN: distlib 0.2.8 released on PyPI

2018-10-02 Thread Vinay Sajip via Python-announce-list
I've recently released version 0.2.8 of distlib on PyPI [1]. For newcomers,distlib is a library of packaging functionality which is intended to beusable as the basis for third-party packaging tools. The main changes in this release are as follows: * Fixed #107: Updated documentation on testing

Re: This thread is closed [an actual new thread]

2018-10-02 Thread Robin Becker
On 02/10/2018 11:46, Rhodri James wrote: On 02/10/18 01:02, Ethan Furman wrote: On 10/01/2018 04:26 PM, Ben Finney wrote:  > Ethan Furman writes:  >> This thread is closed.  >  > Coming from a moderator of this forum, I don't know how that statement  > is to be interpreted. It should be

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread Michael Felt
Change by Michael Felt : Added file: https://bugs.python.org/file47840/mime-attachment Added file: https://bugs.python.org/file47841/encrypted.asc ___ Python tracker ___

ANN: distlib 0.2.8 released on PyPI

2018-10-02 Thread Vinay Sajip via Python-list
I've recently released version 0.2.8 of distlib on PyPI [1]. For newcomers,distlib is a library of packaging functionality which is intended to beusable as the basis for third-party packaging tools. The main changes in this release are as follows: * Fixed #107: Updated documentation on testing

Re: This thread is closed [an actual new thread]

2018-10-02 Thread Rhodri James
On 02/10/18 01:02, Ethan Furman wrote: On 10/01/2018 04:26 PM, Ben Finney wrote: > Ethan Furman writes: >> This thread is closed. > > Coming from a moderator of this forum, I don't know how that statement > is to be interpreted. It should be interpreted as: - No further discussion should

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: This weekend I realized something important which I didn't realize before: some hash functions which I assumed to be good (i.e. small chance of collisions between any given two tuples) turned out to often fail the tests. This is because you don't just want

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Submitted a fix for Pyflakes: https://github.com/PyCQA/pyflakes/pull/369. It had more problems due to changes in line and column numbers in SyntaxError. -- ___ Python tracker

[issue34870] Core dump when Python VSCode debugger is attached

2018-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > the author wants this transformation to be easily invertible, so a prime is > necessary A multiplication by any odd number modulo 2**64 is invertible. As I argued before, the concept of primes is meaningless (except for the prime 2) when computing modulo

[issue34866] CGI DOS vulnerability via long post list

2018-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34561] Replace list sorting merge_collapse()?

2018-10-02 Thread Vincent Jugé
Vincent Jugé added the comment: After having worked a little bit on improving AdaptiveShiversSort on few-run cases, I designed a new version of the algorithm, called shivers2 in the file runstack.py joined to this message It looks more complicated than the original AdaptiveShiversSort but

[issue23097] unittest can unnecessarily modify sys.path (and with the wrong case)

2018-10-02 Thread Charlie Dyson
Charlie Dyson added the comment: As an aside, should that be sys.path.insert(1, X)? As 0 has a special meaning (I've often thought this is a slightly odd convention). Another aside: I noticed this because I was looking to write a module finder, and thought I could extract one out of this

Re: How to achieve pyc only deployment for module in python3.6

2018-10-02 Thread Kirill Balunov
On Tue, Oct 2, 2018, 08:42 Chris Angelico wrote: > On Tue, Oct 2, 2018 at 12:01 PM Chandana Pattanayak > wrote: > > > > Hi, > > > > I have a requirement to provide basic code protection for a module in our > > product suite. With python 3.6 the .pyc files are created under pycache , > > so if i

[issue34870] Core dump when Python VSCode debugger is attached

2018-10-02 Thread Per Lundberg
New submission from Per Lundberg : My code has recently started triggering a core dump in the Python executable when the VSCode debugger is attached. This doesn't happen right away; it seems to happen more or less _after_ the program is done executing (I just placed a breakpoint and stepped

[issue34430] Symmetrical chaining futures in asyncio.future.wrap_future

2018-10-02 Thread Alfred Sawaya
Alfred Sawaya added the comment: I use it to integrate a concurrent-based software (B) with an asyncio-based software (A). (B) will undergo a massive refactoring to become asyncio-based in the future, but for now, I need to use it as-is. I don't want to modify (A) to handle

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: Jeremy Kloth: "This is also an issue on Windows when the target path resides within a junction, paths outside of a junction respond (err, fail) as expected."

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: My understanding is: `loop` argument passed to sleep should be always the same as returned from `get_running_loop()`. Passing it explicitly can be considered as microoptimization but `get_running_loop()` is pretty fast now, no need for such micro-opts. On

Nikola v8.0.1 is out!

2018-10-02 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.0.1. Some bugs were fixed; more importantly, we pinned down the Markdown package version due to incompatibilities. What is Nikola? === Nikola is a static site and blog generator, written in

python-sql 1.0.0 release

2018-10-02 Thread Cédric Krier via Python-announce-list
We are proud to announce the release of the version 1.0.0 of python-sql. python-sql is a library to write SQL queries in a pythonic way. In addition to bug-fixes, this release contains those improvements: Add Flavor filter_ to fallback to case expression Allow to use expression in

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: > I'm going to formally reject this, since GCC removed -fmpx support. "The MPX extensions to the C and C++ languages have been deprecated and will be removed in a future release." https://gcc.gnu.org/gcc-8/changes.html Oh. It seems like the reason is to

Leo 5.8 released

2018-10-02 Thread Edward K. Ream
Leo 5.8 final, http://leoeditor.com, is now available on [GitHub](https://github.com/leo-editor/leo-editor). Leo is an IDE, outliner and PIM, as described [here]( http://leoeditor.com/preface.html). **The highlights of Leo 5.8** - Much faster file-read code. - Leo no longer caches file

EuroPython 2019: RFP for Venues

2018-10-02 Thread M.-A. Lemburg
Dear EuroPython'istas, We are happy to announce that we have started the RFP for venues to host the EuroPython 2019 conference. We have sent out the details to almost 40 venues. For more details about the RFP, please see our blog post:

[RELEASE] Python 3.7.1rc1 and 3.6.7rc1 now available for testing

2018-10-02 Thread Ned Deily
Python 3.7.1rc1 and 3.6.7rc1 are now available. 3.7.1rc1 is the release preview of the first maintenance release of Python 3.7, the latest feature release of Python. 3.6.7rc1 is the release preview of the next maintenance release of Python 3.6, the previous feature release of Python. Assuming no

Numpy 1.14.6 release

2018-10-02 Thread Charles R Harris
Hi All, On behalf of the NumPy team, I am pleased to announce the release of NumPy 1.14.6. This is a bug fix release for bugs and regressions reported following the 1.14.5 release. The significant fixes are: - Fix for behavior change in ``ma.masked_values(shrink=True)`` - Fix the new

EuroPython 2019: Seeking venues

2018-10-02 Thread M.-A. Lemburg
Dear EuroPython'istas, We are in preparations of our venue RFP for the EuroPython 2019 edition and are asking for your help in finding the right locations for us to choose from. If you know of a larger venue - hotel or conference center - that can accommodate at least 1400 attendees, please send

NumPy 1.15.2 released

2018-10-02 Thread Charles R Harris
Hi All, On behalf of the NumPy team, I am pleased to announce the release of NumPy 1.15.2. This is a bug fix release for bugs and regressions reported following the 1.15.2 release. The fixes are: - the matrix PendingDeprecationWarning is now suppressed in pytest 3.8, - the new cached

[pytest-dev] pytest 3.8.1 released

2018-10-02 Thread Ankit Goel
pytest 3.8.1 has just been released to PyPI. This is a bug-fix release, being a drop-in replacement. To upgrade:: pip install --upgrade pytest The full changelog is available at https://docs.pytest.org/en/latest/changelog.html. Thanks to all who contributed to this release, among them: *

ANN: poliastro 0.11.0 released 

2018-10-02 Thread Juan Luis Cano
Hi all, It fills us with astronomical joy to announce the release of poliastro 0.11.0!  poliastro is a pure Python library that allows you to simulate and analyze interplanetary orbits in a Jupyter notebook in an interactive and easy way, used in academia and the industry by people from all

endesive - 0.3.0

2018-10-02 Thread Grzegorz Makarewicz
Python library for digital signing and verification of digital signatures in mail, PDF and XML documents. The ASN.1 implementation depends on asn1crypto. Cryptographic routines depend on oscrypto and cryptography libraries, so everything is 'pure python'. For certificate verification OpenSSL

Wing Python IDE 6.1.1 released

2018-10-02 Thread Wingware
Hi, We've just released Wing 6.1.1 , which improves PEP 8 reformatting, streamlines remote agent installation, improves robustness of remote development in the face of network failures, adds support for debugging PythonQt, optimizes multi-process

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: FYI if I recall correctly, in the past, we preferred to pass explicitly the loop to avoid to have to get the current loop which may add an overhead. But the current trend is to get rid of the explicit loop parameter. > asyncio.sleep is a coroutine; passing

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: There is a new PR, so I change the issue resolution again. -- resolution: fixed -> ___ Python tracker ___

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: > Victor, you're looking at an outdated comment on this issue. No, I read the commit: https://github.com/python/cpython/commit/558c49bcf3a8543d64a68de836b5d855efd56696 warnings.warn("The loop argument is deprecated and scheduled for"

Re: How to change '\\' to '\'

2018-10-02 Thread Ethan Furman
On 10/01/2018 11:10 PM, Christian Gollwitzer wrote: Am 02.10.18 um 04:17 schrieb Jach Fong: It was supposed that most discussant want to see the reply message instantly when they open the mail. They already know what is going on and no need to pass through all those previous message. "top

[issue34850] Emit a syntax warning for "is" with a literal

2018-10-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I like this solution of a syntax warning for `is ` > and I agree that `== None` should not be a warning. +1 for me as well. Besides catching potential bugs, it will be of instant benefit for teaching Python. -- nosy: +rhettinger

Re: How to achieve pyc only deployment for module in python3.6

2018-10-02 Thread Chandana Pattanayak
Thank you all. I will go for containers. Will ask for more time based on all your inputs.. Thanks, Chandana On Tue, 2 Oct 2018, 11:22 dieter, wrote: > dieter writes: > > Chandana Pattanayak writes: > >> I have a requirement to provide basic code protection for a module in > our > >> product

[issue34867] Add mode to disable small integer and interned string caches

2018-10-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this option will be of any value. For it to work, the code would need to have this particular bug, have test cases that triggered those bugs, and a user sophisticated enough to run the tests but unsophisticated enough to make beginner

Re: How to change '\\' to '\'

2018-10-02 Thread Christian Gollwitzer
Am 02.10.18 um 04:17 schrieb Jach Fong: It was supposed that most discussant want to see the reply message instantly when they open the mail. They already know what is going on and no need to pass through all those previous message. "top posting" seems more reasonable to me:-) You assume that

<    1   2