[Python-Dev] Summary of Python tracker Issues

2022-01-21 Thread Python tracker

ACTIVITY SUMMARY (2022-01-14 - 2022-01-21)
Python tracker at https://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open7175 (-27)
  closed 51014 (+108)
  total  58189 (+81)

Open issues with patches: 2878 


Issues opened (59)
==

#24711: Document getpass.getpass behavior on ^C
https://bugs.python.org/issue24711  reopened by iritkatriel

#44133: Some C-API symbols (e.g. Py_FrozenMain) are not always exporte
https://bugs.python.org/issue44133  reopened by vstinner

#45522: Allow to build Python without freelists
https://bugs.python.org/issue45522  reopened by vstinner

#46035: mimetypes.guess_type returns deprecated mimetype application/x
https://bugs.python.org/issue46035  reopened by iritkatriel

#46133: Feature request: allow mechanism for creator of exec-generated
https://bugs.python.org/issue46133  reopened by posita

#46381: Improve documentation of CFLAGS_NODIST, LDFLAGS_NODIST
https://bugs.python.org/issue46381  opened by matthiaskoeppe

#46382: dataclass(slots=True) does not account for slots in base class
https://bugs.python.org/issue46382  opened by ariebovenberg

#46383: _zoneinfo module_free has invalid function signature
https://bugs.python.org/issue46383  opened by christian.heimes

#46384: Request: make  lzma._(encode|decode)_filter_properties public
https://bugs.python.org/issue46384  opened by miurahr

#46389: 3.11: unused generator comprehensions cause f_lineno==None
https://bugs.python.org/issue46389  opened by nedbat

#46390: Multiple test failures on Alpine 3.15 / musl-1.2.2-r7
https://bugs.python.org/issue46390  opened by christian.heimes

#46391: Library multiprocess leaks named resources.
https://bugs.python.org/issue46391  opened by milestonejxd

#46392: MessageIDHeader is too strict for message-id
https://bugs.python.org/issue46392  opened by bpoaugust

#46393: Generate frozenset constants when explicitly appropriate
https://bugs.python.org/issue46393  opened by terry.reedy

#46396: Invalid usage of `Concatenate` is not covered at all
https://bugs.python.org/issue46396  opened by sobolevn

#46397: urllib.parse.urlencode() return wrong character
https://bugs.python.org/issue46397  opened by scratch

#46398: posixshmem module shm_rename freebsd support.
https://bugs.python.org/issue46398  opened by devnexen

#46399: Addition of `mapping` attribute to dict views classes has inad
https://bugs.python.org/issue46399  opened by AlexWaygood

#46400: Please update bundled libexpat to 2.4.3 with security fixes
https://bugs.python.org/issue46400  opened by sping

#46404: 3.11a4: a small attrs regression
https://bugs.python.org/issue46404  opened by tinchester

#46406: optimize int division
https://bugs.python.org/issue46406  opened by gregory.p.smith

#46407: optimizing `1 << n` or `2 ** n` and modulo-only operations
https://bugs.python.org/issue46407  opened by February291948

#46410: TypeError when parsing regexp with unicode named character seq
https://bugs.python.org/issue46410  opened by jirkamarsik

#46414: Add typing.reveal_type
https://bugs.python.org/issue46414  opened by Jelle Zijlstra

#46416: Direct invocation of `Lib/test/test_typing.py` fails
https://bugs.python.org/issue46416  opened by sobolevn

#46417: Clear static types in Py_Finalize() for embedded Python
https://bugs.python.org/issue46417  opened by vstinner

#46419: Incomplete Comparison to C++ Methods
https://bugs.python.org/issue46419  opened by jharmse

#46420: Use NOTRACE_DISPATCH in specialized opcodes
https://bugs.python.org/issue46420  opened by Dennis Sweeney

#46421: unittest ValueError when invoking as module
https://bugs.python.org/issue46421  opened by BaderSZ

#46422: Why do we need `dis.Positions`?
https://bugs.python.org/issue46422  opened by sobolevn

#46425: Multiple test modules fail to run if invoked directly
https://bugs.python.org/issue46425  opened by sobolevn

#46426: Improve tests for the dir_fd argument
https://bugs.python.org/issue46426  opened by serhiy.storchaka

#46429: Merge all deepfrozen files into one
https://bugs.python.org/issue46429  opened by kumaraditya303

#46430: intern strings in deepfrozen modules
https://bugs.python.org/issue46430  opened by kumaraditya303

#46431: Trouble subclassing ExceptionGroup
https://bugs.python.org/issue46431  opened by petr.viktorin

#46432: AMD64 FreeBSD Shared 3.x buildbot fails to build: error: error
https://bugs.python.org/issue46432  opened by vstinner

#46433: _PyType_GetModuleByDef optimization is incorrect
https://bugs.python.org/issue46433  opened by petr.viktorin

#46434: pdb help fails with AttributeError when using Windows embeddab
https://bugs.python.org/issue46434  opened by sparrowt

#46435: MessageID parser can crash with IndexError: string index out o
https://bugs.python.org/issue46435  opened by bpoaugust

#46436: Pass the -d/--directory command-line option to http.server.CGI

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2022-01-21 Thread Abdur-Rahmaan Janhangeer
I heard that rust has fewer target architectures. Is that a minus point
with regards
to C?

Kind Regards,

Abdur-Rahmaan Janhangeer
about  | blog

github 
Mauritius
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/MUKAEJSUKYUWAE2HYUOTFZ5ELF2TU2JL/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Discussion about crash tolerance feature for gdbm module

2022-01-21 Thread Dong-hee Na
After discussion with Victor by using DM, I decided to provide
high-level API instead of low-level APIs.

- gdbm.open(filename, snapshots=(foo, bar))

will do everything at once.

Regards,
Dong-hee

2022년 1월 21일 (금) 오후 12:52, Dong-hee Na 님이 작성:

> For more readable code:
> https://gist.github.com/corona10/d4fe0b6367ea6865e37b4369a7d60912
>
> 2022년 1월 21일 (금) 오후 12:50, Dong-hee Na 님이 작성:
>
>> I exchanged a mail for investigating details.
>>
>> Before getting started, please remind the following fact.
>> - The latest snapshot is always valid, even if corruption has not
>> occurred.
>>
>> > Why is a separated script needed? / A single script cannot
>> automatically detect a corrupted database and load the latest snapshot?
>>
>> So, the author said a separate script is never needed,
>> if the user reads from the latest snapshot file, it will always be
>> recovered.
>> so the user code will be like this.
>>
>> import dbm.gnu as dbm
>>
>> # skip check code that all files are exists, origin, even_snapshot, 
>> odd_snapshot
>>
>>
>> if origin is None:
>>
>> db = dbm.open(origin, 'nx') # For extension format
>>
>> db.gdbm_failure_atomic(even_snapshot, odd_snapshot) # For snapshot 
>> declaration
>>
>> else:
>>
>> latest_snapshot = dbm.gdbm_latest_snapshot(even_snapshot odd_snapshot)
>>
>>   db = dbm.open(latest_snapshot, 'r') # Open the latest valid 
>> snapshot
>>
>> for k, v in zip('abcdef', 'ghijkl'):
>> db[k] = v
>>
>> db.sync()
>> db.close()
>>
>>
>> > How is different from simply copying the whole database file?
>>
>>
>> Under the hood, the gdbm crash-tolerance mechanism *does* (logically) copy
>> the whole database file, but it does so efficiently, using "reflink"
>> copies, so the amount of physical storage resources used is minimal.
>>
>> You may good to read this paper: 
>> https://dl.acm.org/doi/pdf/10.1145/3487019.3487353
>>
>>
>> Warm Regards,
>>
>> Dong-hee
>>
>>
>> 2022년 1월 18일 (화) 오후 10:54, Victor Stinner 님이 작성:
>>
>>> How does someone know if a database is corrupted? Why is a separated
>>> script needed?
>>>
>>> A single script cannot automatically detect a corrupted database and
>>> load the latest snapshot?
>>>
>>> How is different from simply copying the whole database file?
>>>
>>> Victor
>>> --
>>> Night gathers, and now my watch begins. It shall not end until my death.
>>>
>>
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/PFEG4XFU3WICTVCPV5IYKOAONNU2NLPZ/
Code of Conduct: http://python.org/psf/codeofconduct/