[issue35923] Update the BuiltinImporter in importlib to use loader._ORIGIN instead of a hardcoded value

2019-02-06 Thread Nina Zakharenko


Nina Zakharenko  added the comment:

Hey Dong-hee, Unfortunately, I already started the work on this which is why I 
assigned the ticket to myself when I opened it. This work came up as a 
continuation of another ticket I worked on - bpo-35321 / GH-11732. I wanted to 
keep them as separate issues.

I'm sorry, I hope you find another ticket to work on soon.

--

___
Python tracker 
<https://bugs.python.org/issue35923>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35923] Update the BuiltinImporter in importlib to use loader._ORIGIN instead of a hardcoded value

2019-02-06 Thread Nina Zakharenko


New submission from Nina Zakharenko :

Update the BuiltinImporter in importllib to set the origin from the shared 
`loader._ORIGIN` attribute instead of using the hard-coded value of 'built-in' 
in order to match the functionality of FrozenImporter.

The FrozenImporter was updated to use this attribute in PR GH-11732 
(https://github.com/python/cpython/pull/11732)

--
assignee: nnja
components: Interpreter Core
messages: 334989
nosy: barry, nnja
priority: low
severity: normal
status: open
title: Update the BuiltinImporter in importlib to use loader._ORIGIN instead of 
a hardcoded value
type: enhancement
versions: Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue35923>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-06 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
keywords: +patch, patch
pull_requests: +11753, 11754
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue35887>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-06 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
keywords: +patch, patch, patch
pull_requests: +11753, 11754, 11755
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue35887>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-06 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
keywords: +patch
pull_requests: +11753
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue35887>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-02-01 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
keywords: +patch
pull_requests: +11629
stage: test needed -> patch review

___
Python tracker 
<https://bugs.python.org/issue35321>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
pull_requests: +11626, 11627

___
Python tracker 
<https://bugs.python.org/issue35537>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
pull_requests: +11626, 11627, 11628

___
Python tracker 
<https://bugs.python.org/issue35537>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
pull_requests: +11626

___
Python tracker 
<https://bugs.python.org/issue35537>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-01 Thread Nina Zakharenko


New submission from Nina Zakharenko :

In the process of creating a fix for issue #35321, I noticed what I believe to 
be a documentation omission. 

In Lib/importlib/_bootstrap.py the top level comment states that:

# IMPORTANT: Whenever making changes to this module, be sure to run
# a top-level make in order to get the frozen version of the module
# updated.

>From my testing, it appears that the header file will only be updated when 
>running `make regen-importlib`

To repo:
- make a code change in Lib/importlib/_bootstrap_external.py
- run a top-level `make`
- see that Python/importlib.h does not change
- run `make regen-importlib`
- see that Python/importlib.h has now been updated

The documentation in Lib/importlib/_bootstrap_external.py does in fact mention 
this.

I propose amending the documentation to include the correct instructions.

If this is deemed necessary, I will write the patch over the weekend.

--
assignee: nnja
components: Library (Lib)
messages: 334735
nosy: barry, nnja
priority: low
severity: normal
status: open
title: Doc string for updating the frozen version of importlib in _bootstrap.py 
incorrect
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue35887>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-01-18 Thread Nina Zakharenko


Nina Zakharenko  added the comment:

I'll be happy to take a look at this.

--

___
Python tracker 
<https://bugs.python.org/issue35321>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-01-18 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
assignee:  -> nnja
nosy: +nnja

___
Python tracker 
<https://bugs.python.org/issue35321>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32866] zipimport loader.get_data() requires absolute zip file path

2019-01-17 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
nosy: +nnja

___
Python tracker 
<https://bugs.python.org/issue32866>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25812] locale.nl_langinfo() can't decode value

2016-06-02 Thread Nina Zakharenko

Nina Zakharenko added the comment:

Adding the test below to test__locale.py will reproduce the issue under the 
following conditions:
- The locale `uk_UA` is installed on your system.
- 'uk_UA': (',', '\xa0') is added to the `known_numerics` dictionary in this 
test file

@unittest.skipUnless(nl_langinfo, "nl_langinfo is not available")
def test_lc_numeric_not_char_nl_langinfo(self):
# Test nl_langinfo against known values/
# It should still work if there's a mismatch between
# String & Numeric Locales
tested = False
for loc in candidate_locales:
try:
setlocale(LC_NUMERIC, loc)
except Error:
continue
for li, lc in ((RADIXCHAR, "decimal_point"),
(THOUSEP, "thousands_sep")):
if self.numeric_tester('nl_langinfo', nl_langinfo(li), lc, loc):
tested = True
if not tested:
self.skipTest('no suitable locales')

--
nosy: +nnja

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25812>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21327] socket.type value changes after using settimeout()

2015-04-14 Thread Nina Zakharenko

Nina Zakharenko added the comment:

Maybe it would be better if the type property on socket had this behavior, 
rather than creating a new method.

--
nosy: +nnja

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21327
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21253] Difflib

2014-04-16 Thread Nina Zakharenko

New submission from Nina Zakharenko:

When difflib.compare() is used on two moderately large sequences with little or 
no common elements, a RuntimeError: maximum recursion depth exceeded occurs. 

This error became apparent when testing another bug (see: issue 19217) in the 
AssertEquals() method of the unit test library.

A sample program to reproduce this issue in 3.4 is attached. To repo in 2.7 
remove the list() wrapper from the range call.

--
components: Library (Lib)
files: diff_bug34.py
messages: 216479
nosy: gregory.p.smith, nnja, r.david.murray
priority: normal
severity: normal
status: open
title: Difflib
type: crash
versions: Python 2.7, Python 3.4
Added file: http://bugs.python.org/file34911/diff_bug34.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21253] Difflib.compare() crashes when sequences contain little or no common elements

2014-04-16 Thread Nina Zakharenko

Changes by Nina Zakharenko nzakhare...@gmail.com:


--
title: Difflib - Difflib.compare() crashes when sequences contain little or no 
common elements

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19217] Calling assertEquals for moderately long list takes too long

2014-04-16 Thread Nina Zakharenko

Nina Zakharenko added the comment:

The cause of this has been identified as a bug in libdiff.compare(). See issue 
21253 for more information.

--
nosy: +nnja

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19217
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com