[issue10106] missing packages

2010-10-14 Thread S S
New submission from S S : when trying to install beutifulsoup package on windows xp x86 with python 2.6.6 getting the following error C:\Python26>python C:\temp\BeautifulSoup-3.0.8.1\setup.py install 'import site' failed; use -v for traceback Traceback (most recent call last):

[issue10106] missing packages

2010-10-14 Thread S S
S S added the comment: Brett, the installation did not had any issues. its running on windows xp, i am administrator of the machine so no permission issues. nothing got moved either as it fresh install -- ___ Python tracker <h

[issue10106] missing packages

2010-10-22 Thread S S
S S added the comment: finally was able to figure it out. i had another product installed, which uses python 2.4 that product during installation put PYTHONHOME into system variable environment. as soon as i either change that PYTHONHOME to my latest python path c:\python26 everything

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-23 Thread s
New submission from s : Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' ### Process: Python [1889] Path: /Library/Frameworks/Python.framewor

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-23 Thread s
s added the comment: Guys, First of all - thank you for accepting it and trying to fix it. I lost two days attempting to resurrect python3 on my laptop and ended up with uninstalling it and restoring python 2.7.10. I agree (and I think it is separate and well known python's problem) - ther

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-24 Thread s
s added the comment: :) sure. if you want to close it - it's up to you. if you however, want to fix it, please tell me what information do you need me to provide. I don't think my tone was bad/offensive. ...and it's still a bug, regardless of my tone or anything else. and by t

[issue46093] 2D array issue

2021-12-15 Thread Ritvik S
New submission from Ritvik S : I had a problem running the following code. When I ran through what I thought python was supposed to do, I got a different answer than what python did. I think this is an error. Here is the code: problem_ary = [['a','b','c&#x

[issue46288] Migrating python 2.7 to 3.6 using 2to3 tool

2022-01-06 Thread Karthik S
New submission from Karthik S : Greeting of the day to all.. I would like to address few queries as mentioned in the below. python 2.7 code is running fine on RHEL 7.9,we are migrating to python3 from Python2 using 2to3 on RHEL 7.9. After migrating, When we run our products in python 3.6,we

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-02-07 Thread Andy S
Andy S added the comment: Can reproduce this on 3.9. Is the fact 3.9 is in `bugfix` status enough to backport any fixing changes from 3.11 (if that's true and the bug was fixed)? -- ___ Python tracker <https://bugs.python.org/is

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-02-07 Thread Andy S
Andy S added the comment: Then maybe those RMs (for 3.9 and 3.10) should decide on their own? That should mean the bug should be reopened for them to get assigned to. -- ___ Python tracker <https://bugs.python.org/issue42

[issue20779] Add pathlib.chown method

2022-02-07 Thread Jaspar S.
Jaspar S. added the comment: I would love to use chown for a pathlib Path, too. It may not be used often, but if anyone want's to change all the os references from a file, it would be cool to have it on pathlib! -- nosy: +y0urself ___ P

[issue20779] Add pathlib.chown method

2022-02-08 Thread Jaspar S.
Change by Jaspar S. : -- pull_requests: +29382 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31212 ___ Python tracker <https://bugs.python.org/issu

[issue13111] Error 2203 when installing Python/Perl?

2011-10-05 Thread MA S
New submission from MA S : I can't install Python or Strawberry Perl on the Windows 8 Developer Preview :( I keep getting installer error 2203; the log file's attached. I really don't know what's wrong... -- components: Windows files: python.log messages: 144975

[issue1372770] email.Header should preserve original FWS

2012-01-02 Thread Srikanth S
Changes by Srikanth S : -- nosy: +srikanths ___ Python tracker <http://bugs.python.org/issue1372770> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11492] email.header.Header doesn't fold headers correctly

2012-01-02 Thread Srikanth S
Changes by Srikanth S : -- nosy: +srikanths ___ Python tracker <http://bugs.python.org/issue11492> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6942] email.generator.Generator memory consumption

2011-07-14 Thread Srikanth S
Changes by Srikanth S : -- nosy: +srikanths ___ Python tracker <http://bugs.python.org/issue6942> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1670765] email.Generator: no header wrapping for multipart/signed

2011-07-14 Thread Srikanth S
Changes by Srikanth S : -- nosy: +srikanths ___ Python tracker <http://bugs.python.org/issue1670765> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue968430] error flattening complex smime signed message

2011-07-14 Thread Srikanth S
Changes by Srikanth S : -- nosy: +srikanths ___ Python tracker <http://bugs.python.org/issue968430> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10061] ** operator yielding wrong result for negative numbers

2010-10-09 Thread eswar s
New submission from eswar s : -5 ** 4 results as -625. It should be 625 -- components: None messages: 118311 nosy: eswar.s priority: normal severity: normal status: open title: ** operator yielding wrong result for negative numbers type: compile error versions: Python 2.6

[issue8503] smtpd module does not allow

2010-04-23 Thread mike s
New submission from mike s : The SMTPServer supplied by the smtpd library allows clients to send mail to any domain. This makes the server attractive to spammers, thinking they have found an open relay. The patch below adds an "accept_domain" method to SMTPServer (documented below)

[issue8503] smtpd module does not allow domain filtering

2010-04-23 Thread mike s
Changes by mike s : -- title: smtpd module does not allow -> smtpd module does not allow domain filtering ___ Python tracker <http://bugs.python.org/iss

[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread mike s
Changes by mike s : -- title: smtpd module does not allow domain filtering -> smtpd SMTPServer does not allow domain filtering ___ Python tracker <http://bugs.python.org/iss

[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread mike s
mike s added the comment: I don't think that is a suitable solution for this problem, because the expected SMTP behavior is to reject an unsuitable RCPT TO directly after it is proposed by the client. However, I think it would be a great idea to have such a method being called after th

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2009-01-16 Thread S Arrowsmith
New submission from S Arrowsmith : Asking mimetypes to reload mime.types can cause guess_extension() to return a different result if multiple extensions are mapped to that mime type: >>> import mimetypes >>> mimetypes.guess_extension('image/jpeg'

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2009-01-16 Thread S Arrowsmith
S Arrowsmith added the comment: Ah, yes, forgot to mention this is on Debian 4.0. I doubt you're going to run into it on a Windows system unless you explicitly give init() a mime.types file, looking at the knownfiles list used by default. ___ Python tr

[issue38457] __package__ is None in __init__.py until an import is used

2019-10-12 Thread Yuval S
New submission from Yuval S : In Python 2.7, the __package__ variable isn't set when __init__.py is run, until an import is done. In Python 3.5, it is set correctly. e.g. # mkdir x && echo "print(__package__)" | tee x/__init__.py x/test.py # python2 x.test None x # py

[issue38457] __package__ is None in __init__.py until an import is used

2019-10-13 Thread Yuval S
Yuval S added the comment: * It should be python[23] -m x.test, of course. -- ___ Python tracker <https://bugs.python.org/issue38457> ___ ___ Python-bugs-list m

[issue43430] Exception raised when attempting to create Enum via functional API

2021-04-21 Thread Suhail S.
Suhail S. added the comment: In my usecase, I wanted to override the behaviour of __getitem__. I was able to accomplish this by subclassing EnumMeta. Having done so, I was able to work around this bug as follows. Instead of trying to access the functional API via Enum (using an enum as the

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-02 Thread Alexei S
Change by Alexei S : -- components: +Tests type: -> compile error ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bugs-list mai

[issue43001] python3.9.1python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- title: python3.9.1 test_embed test_tabnanny failed -> python3.9.1python3.9.1 test_embed test_tabnanny failed ___ Python tracker <https://bugs.python.org/issu

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- resolution: out of date -> status: closed -> open ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Alexei S added the comment: python 3.8.9 also show compile problems my system: Linux Mint 20.1 Cinnamon (Cinnamon 4.8.6) kernel 5.8.0-48-generic $uname -a Linux home 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I tried to execute problem

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50007/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bug

[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- title: python3.8.9, python3.9.1 test_embed test_tabnanny failed -> python3.8.9, python3.9.2 test_embed test_tabnanny failed ___ Python tracker <https://bugs.python.org/issu

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50009/log_make 3.9.2.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list m

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
New submission from Alexei S : Python 3.9.2 make test == Tests result: FAILURE then FAILURE == 396 tests OK. 2 tests failed: test_embed test_tabnanny 27 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_idle test_ioctl test_kqueue test_lzma

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50010/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bug

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50011/log_make_test 3.8.9.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bug

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Alexei S added the comment: this problem was announced also in 43001 https://bugs.python.org/issue43001?@ok_message=%D0%98%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D1%8B%20%D0%B0%D1%82%D1%80%D0%B8%D0%B1%D1%83%D1%82%D1%8B%20%D0%B7%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%B8%D0%B5%20%D0%BE%D0%B1%D1%8A%D0%B5

[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- resolution: -> out of date status: open -> closed ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50012/log_make_test 3.8.9.log ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bug

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50013/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bug

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Alexei S added the comment: I have opened the same issue https://bugs.python.org/issue44031 -- nosy: +asholomitskiy84 ___ Python tracker <https://bugs.python.org/issue43

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Alexei S added the comment: the same issue also in https://bugs.python.org/issue43583 -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Pytho

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Alexei S added the comment: python3 -m ~/Загрузки/Python-3.8.9/Lib/test/test_embed -v /usr/bin/python3: Error while finding module specification for '/home/alexei/Загрузки/Python-3.8.9/Lib/test/test_embed' (ModuleNotFoundError: No module named '/home/alexei/Загрузки/Python-

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Alexei S added the comment: i rename folder and tried python3 -m '~/Загрузки/Python-389/Lib/test/test_embed' -v /usr/bin/python3: No module named ~/Загрузки/Python-389/Lib/test/test_embed ??? -- ___ Python tracker <https://bu

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-25 Thread Alexei S
Alexei S added the comment: make test TESTOPTS="-v test_embed test_tabnanny" CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./set

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-25 Thread Alexei S
Alexei S added the comment: I downloaded tar.gz of Python-3.8.9 and Python-3.9.4 into my ~/Downloads folder (~/Загрузки in Russian) extracted them, after that executed: chmod +x configure CXX=/usr/bin/g++ ./configure --enable-optimizations make -j4 problems the same for both Python versions

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2021-05-27 Thread Alexei S
Alexei S added the comment: the problem is caused by language?? -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailin

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2021-05-27 Thread Alexei S
Alexei S added the comment: yes! the problem was in folder caption! -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailin

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2021-05-27 Thread Alexei S
Alexei S added the comment: how we can fix this small problem in next releases of test_embed test_tabnanny? other tests didn't fail -- ___ Python tracker <https://bugs.python.org/is

[issue44481] Tkinter config() minor documentation bug for shorthand options

2021-06-21 Thread Jeff S
New submission from Jeff S : The documentation page https://docs.python.org/3/library/tkinter.html states "Passing the config() method the name of a shorthand option will return a 2-tuple, not 5-tuple." While config() without argument does return a map that yields references lik

[issue39800] Inconsistent/incomplete disassembly of methods vs method source code

2020-02-29 Thread S Murthy
New submission from S Murthy : I am using the dis module to look at source (and logical) lines of code vs corresponding bytecode instructions. I am bit confused by the output of dis.dis when disassembling a given method vs the corresponding source string, e.g. >>> def f(x): re

[issue39800] Inconsistent/incomplete disassembly of methods vs method source code

2020-02-29 Thread S Murthy
S Murthy added the comment: @steven.daprano In this case, the method f was created by via def. And calling dis.dis(s) where s is the source code of f (say s = inspect.getsource(f)) shows the bytecode both for the header and the body, as is clear enough from the example I first posted

[issue39800] Inconsistent/incomplete disassembly of methods vs method source code

2020-02-29 Thread S Murthy
S Murthy added the comment: BTW how else are methods/functions are created in Python except via def? -- ___ Python tracker <https://bugs.python.org/issue39

[issue39800] Inconsistent/incomplete disassembly of methods vs method source code

2020-02-29 Thread S Murthy
S Murthy added the comment: Yes, I know that a method body may contain more than just the return statement - I was referrring to the byte code for the method def f(x): return x**2. I don't think the output of dis.dis is correct here for the source string of f - it doesn't make

[issue39823] Disassembly - improve documentation for bytecode instruction class and set source line no. attribute for every instruction

2020-03-02 Thread S Murthy
New submission from S Murthy : I note that on disassembling a piece of source code (via source strings or code objects) the corresponding sequence of bytecode instruction objects (https://docs.python.org/3/library/dis.html#dis.Instruction) do not always have the `starts_line` attribute set

[issue39823] Disassembly - improve documentation for bytecode instruction class and set source line no. attribute for every instruction

2020-03-02 Thread S Murthy
S Murthy added the comment: Docstring for `Instruction` should be more precise. ATM the description of `starts_line` is line started by this opcode (if any), otherwise None I think "source line started ..." would be a bit more precise an

[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Michael S
New submission from Michael S : I just read https://docs.python.org/3/reference/compound_stmts.html#function-definitions The item parameter_list is defined as: parameter_list::= defparameter ("," defparameter)* "," "/" [&

[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Michael S
Michael S added the comment: Thanks Pablo, sorry, I was just stupid. > Do you think that adding these explicit parentheses would help with help > making this more clear? Maybe. I read the BNF documentation the first time today, but since it's not intended for beginners, I

[issue9253] argparse: optional subparsers

2020-04-03 Thread brent s.
Change by brent s. : -- nosy: +bsaner ___ Python tracker <https://bugs.python.org/issue9253> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-04-08 Thread Rustam S.
Rustam S. added the comment: Please take a look at this as well: (ipython #12049 'Unhandled exception in event loop' (WinError 995)) https://github.com/ipython/ipython/issues/12049#issuecomment-586544339 and below -- nosy: +Rustam S.

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-18 Thread Yuval S
New submission from Yuval S : The following code gives different results on each run, even though "``random.seed()``" is used: >>> import random >>> random.seed(6) >>> x = set(str(i) for i in range(500)) >>> print(random.sample(x, 1)) presumably

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-19 Thread Yuval S
Yuval S added the comment: Thank you for the attention and the quick fix. However, the current documentation for "Notes on Reproducibility" should still address this issue of hash randomization. Not only `sample` is affected by this, but any code that combines strings (or bytes o

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-19 Thread Yuval S
Change by Yuval S : -- pull_requests: +18932 pull_request: https://github.com/python/cpython/pull/19596 ___ Python tracker <https://bugs.python.org/issue40

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-03 Thread Petter S
Petter S added the comment: We should whitelist the protocols. The current solution with `getattr` is really fragile. For example, this crashes with a `TypeError`: `URLopener().open("unknown_proxy://test")` -- nosy: +Petter S ___ Pyth

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-04 Thread Petter S
Petter S added the comment: The solution is incomplete because it fixes just this single security issue, not the inherent fragility of this file. If, in the future someone happens to add another method starting with open to this class, we are at risk of having the same problem again. As

[issue40673] UrlOpener raises different exceptions based on implementation detail

2020-05-18 Thread Petter S
New submission from Petter S : The following code crashes with TypeError: URLopener().open("unknown_proxy://test") the expected behavior is an OSError, which is normally raised for unknown protocols. This implementation of directly calling a method called "unknown_proxy"

[issue40673] urllib.request.URLopener raises different exceptions based on implementation detail

2020-05-18 Thread Petter S
Change by Petter S : -- title: UrlOpener raises different exceptions based on implementation detail -> urllib.request.URLopener raises different exceptions based on implementation detail ___ Python tracker <https://bugs.python.org/issu

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-18 Thread Petter S
Petter S added the comment: OK: https://bugs.python.org/issue40673 -- ___ Python tracker <https://bugs.python.org/issue35907> ___ ___ Python-bugs-list mailin

[issue40673] urllib.request.URLopener raises different exceptions based on implementation detail

2020-05-18 Thread Petter S
Petter S added the comment: I can fix this, but it does not have high priority. -- ___ Python tracker <https://bugs.python.org/issue40673> ___ ___ Python-bug

[issue40673] urllib.request.URLopener raises different exceptions based on implementation detail

2020-05-18 Thread Petter S
Petter S added the comment: I see. Perhaps that is the resolution then. -- ___ Python tracker <https://bugs.python.org/issue40673> ___ ___ Python-bugs-list m

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2020-12-02 Thread Andy S
New submission from Andy S : The python (3.6) doc states (https://docs.python.org/3/reference/simple_stmts.html#the-pass-statement): pass is a null operation... So since this is still an operation one could expect that it can be used as an op to breakpoint on while debugging some scripts

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-01-22 Thread Alexei S
New submission from Alexei S : == Tests result: FAILURE then FAILURE == 396 tests OK. 2 tests failed: test_embed test_tabnanny 27 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_idle test_ioctl test_kqueue test_lzma test_msilib

[issue43328] make test errors

2021-02-26 Thread Alexei S
New submission from Alexei S : this commands are successful: CXX=/usr/bin/g++ ./configure --enable-optimizations >> log_configure.log make -j4 >> log_make.log errors on make test: make -j4 test >> log_make_test.log my system: uname -a Linux home 5.8.0-43-generic #49~20.0

[issue43328] make test errors

2021-02-26 Thread Alexei S
Alexei S added the comment: == Tests result: FAILURE == 403 tests OK. 3 tests failed: test_embed test_ssl test_tabnanny -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-07 Thread Suhail S.
New submission from Suhail S. : It is possible to create custom Enum classes with a metaclass that is a subtype of EnumMeta. It is also possible to inherit from such an enumeration to create another enumeration. However, attempting to do so via the functional API raises an exception. See

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-07 Thread Suhail S.
Change by Suhail S. : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker <https://bugs.python.org/issue43430> ___ ___ Python-bugs-list mailin

[issue41555] re.sub replaces twice

2020-08-14 Thread S. Zhang
New submission from S. Zhang : The following command produced "name.tsvtsv" with version 3.7.1 and 3.8.5 instead of the expected "name.tsv" from version 2.7.5, 3.5.6, and 3.6.7. Changing * to + produced expected "name.tsv". python -c 'import re; v="

[issue41555] re.sub replaces twice

2020-08-15 Thread S. Zhang
S. Zhang added the comment: Thanks. But if talking about empty matches, there would be endless empty matches at the end in such cases. So in my opinion, [^\.]*$ should match txt plus the empty match because the greedy rule applies here. On Fri, Aug 14, 2020 at 10:37 PM Ma Lin wrote

[issue41555] re.sub replaces twice

2020-08-15 Thread S. Zhang
S. Zhang added the comment: Okay. Thanks. On Sat, Aug 15, 2020 at 9:07 AM Ma Lin wrote: > > Ma Lin added the comment: > > There can be at most one empty match at a position. IIRC, Perl's regex > engine has very similar behavior. > If don't wan

[issue41555] re.sub replaces twice

2020-09-05 Thread S. Zhang
S. Zhang added the comment: Thanks. On Mon, Aug 17, 2020 at 7:40 PM Pablo Galindo Salgado < rep...@bugs.python.org> wrote: > > Change by Pablo Galindo Salgado : > > > -- > resolution: -> not a bug > stage: ->

[issue35047] Better error messages in unittest.mock

2019-06-02 Thread Petter S
Change by Petter S : -- pull_requests: +13628 pull_request: https://github.com/python/cpython/pull/13746 ___ Python tracker <https://bugs.python.org/issue35

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-06-02 Thread Petter S
Change by Petter S : -- pull_requests: +13630 pull_request: https://github.com/python/cpython/pull/13748 ___ Python tracker <https://bugs.python.org/issue27

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
New submission from brent s. : (Sorry for the title; not quite sure how to summarize this) SO! Have I got an interesting one for you. ISSUE: In release 3.7.3 (and possibly later), the re module, if one has a string e.g. 'a.b.', a pattern such as '\.*$' will successfully *

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: Sorry- by "chokes", I mean "substitutes in multiple replacements". -- ___ Python tracker <https://bug

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: WORKAROUND: Obviously, str.rstrip('.') still works, but this is of course quite inflexible compared to a regex pattern. -- ___ Python tracker <https://bugs.python.o

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: "'\.' is an invalid escape sequence. Could you try it with a raw string?" Well, a valid regex escape, but right. Point taken. I am under the impression, however, that given the value in ptrn (in example.py) is already a string, it should be

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: Oh for pete's sake. I wish I could edit comments. Eric- To make it clear: * VERSION: 2.7.16 (default, Mar 11 2019, 18:59:25) [GCC 8.2.1 20181127] PATTERN: \.*$ BEFORE: a.b WITHOUT: a.b DUMMY: a.bX AFTER: a.b. RSTRIP: a.b == BEFORE: a.b. WITHOUT: a.b

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: The following message can still appear in the log when running the Django development server: Exception happened during processing of request from ('127.0.0.1', 50713) Traceback (most recent call last): File &q

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: Could potentially already be fixed in Django: https://github.com/django/django/commit/7785e03ba89aafbd949191f126361fb9103cb980#diff-f6d1c75ec606389da5af6558bf57f171L51 -- ___ Python tracker <https://bugs.python.

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: No it is not fixed in Django, but I verified that adding ConnectionAbortedError on this line https://github.com/django/django/blob/c6581a40be3bb4c1e13861f0adbb3fe01f09107f/django/core/servers/basehttp.py#L55 fixes the error

[issue28053] parameterize what serialization is used in multiprocessing

2017-07-14 Thread Will S
Will S added the comment: Documentation would be appreciated. I have a project that uses BaseManager, Client, and Listener to create some servers and clients. I would like to update the project to work with Python 3 and would prefer to update the clients and the servers separately (i.e

[issue28053] parameterize what serialization is used in multiprocessing

2017-07-28 Thread Will S
Will S added the comment: Just to follow up in case anyone comes across my last message later: I just had to change the last line from multiprocessing.reducer = pickle2reducer.Pickle2Reducer() to multiprocessing.context._default_context.reducer = pickle2reducer.Pickle2Reducer

[issue31555] Windows pyd slower when not loaded via load_dynamic

2017-09-22 Thread S Safihre
New submission from S Safihre: I have a Python 2.7 C-extension that was made for performance, however, I noticed something strange on Windows: When I run locally python setup.py install and it installs it the "egg" way, the performance of calling the function in the module 500x in

[issue35335] msgfmt should be able to merge more than one po file

2018-11-27 Thread s-ball
New submission from s-ball : GNU gettext msgfmt can merge several po files into one single mo file. The current version of msgfmt can only compile one po file to one mo file. After looking at the code, the enhancement should be simple to implement. Command line: if one output file is given

[issue35335] msgfmt should be able to merge more than one po file

2018-11-29 Thread s-ball
s-ball added the comment: Ok, I have created a fork, and started coding on a local branch. But it will take some time, because I assume that I am supposed to write tests for the msgfmt module... -- ___ Python tracker <https://bugs.python.

[issue35335] msgfmt should be able to merge more than one po file

2018-12-01 Thread s-ball
s-ball added the comment: I have followed SilentGhost's advice and begun by thoroughly testing the current behaviour. I then realized that I was wrong, and that (probably by chance) msgfmt.py partially followed my requirements, but pybabel did not and GNU gettext msgfmt did not real

[issue35335] msgfmt should be able to merge more than one po file

2018-12-02 Thread s-ball
s-ball added the comment: After some more thinking about it, my opinion is that the proposed path for issue 9741 does not address at all my requirements. So I will try to propose a pull request addressing both issues here. -- ___ Python tracker

  1   2   3   >