[issue31904] Python should support VxWorks RTOS

2019-05-23 Thread Hongchang Liu
Change by Hongchang Liu : -- pull_requests: +13449 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: More CPUs doen't equal more speed

2019-05-23 Thread Terry Reedy
On 5/23/2019 2:39 PM, Bob van der Poel wrote: I'm processing about 1200 files and my total duration is around 2 minutes. A followup to my previous response, which has not shown up yet. The python test suite is over 400 files. You might look at how test.regrtest runs them in parallel when

[issue37029] PyObject_Free is O(N^2) where N = # of arenas

2019-05-23 Thread Inada Naoki
New submission from Inada Naoki : Reported here: * https://stackoverflow.com/questions/56228799/python-hangs-indefinitely-trying-to-delete-deeply-recursive-object * https://mail.python.org/pipermail/python-dev/2019-May/157635.html -- components: Interpreter Core messages: 343344 nosy:

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +13448 stage: -> patch review ___ Python tracker ___ ___

Re: More CPUs doen't equal more speed

2019-05-23 Thread Terry Reedy
On 5/23/2019 2:39 PM, Bob van der Poel wrote: I've got a short script that loops though a number of files and processes them one at a time. I had a bit of time today and figured I'd rewrite the script to process the files 4 at a time by using 4 different instances of python. As others have

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread Steve Dower
Steve Dower added the comment: I confirmed earlier that removing the new code from builtins_id fixes this issue, which I suspect means that PGO is deciding to make different optimizations and produce different output. Other functions in the same stack also do not show their arguments, so I

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I created issue #36982 to track the extended color changes since they broader than this issue. -- ___ Python tracker ___

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-23 Thread Windson Yang
Windson Yang added the comment: I think we should mention it at the document, like in the tell() function. -- ___ Python tracker ___

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-23 Thread Windson Yang
Windson Yang added the comment: I'm not sure it's a bug. When you write binary data to file (use BufferedIOBase by default). It actually writes the data to a buffer. That is why tell() gets out of sync. You can follow the instrument belolw. For instance, call flush() after writing to get

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-23 Thread ppperry
ppperry added the comment: Indeed, you are right that this should be reopened. -- ___ Python tracker ___ ___ Python-bugs-list

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: Corrected typos in msg343336 for clarity: At first glance, has_extended_colors() seems like a better name because it is similar to has_colors(), but the two functions have very different semantics that could confuse developers.

[issue37019] Create symlinks relative to cwd

2019-05-23 Thread Shannon
Shannon added the comment: I can see how this change would be backward incompatible, however the current behaviour seems inconsistent with the way pathlib functions otherwise. Within two lines of code, the same path object can be pointing to two completely different locations simply because

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: A new function called curses.has_extended_color_support() will indicate whether the linked ncurses library provides extended color support. It returns true if curses.h defines NCURSES_EXT_COLORS and NCURSES_EXT_FUNCS, indicating that the extended color

Re: More CPUs doen't equal more speed

2019-05-23 Thread Cameron Simpson
On 23May2019 17:04, bvdp wrote: Anyway, yes the problem is that I was naively using command.getoutput() which blocks until the command is finished. So, of course, only one process was being run at one time! Bad me! I guess I should be looking at subprocess.Popen(). Now, a more relevant

[issue37028] Implement asyncio repl

2019-05-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-23 Thread Thomas Hisch
Thomas Hisch added the comment: I think this tickt needs to be reopened, because > The actual bug appears to be "doctest can't run on a module that contains > un-unwrappable objects" @ppperry Or do you already know where this issue is tracked? -- nosy: +Thomas Hisch

Re: More CPUs doen't equal more speed

2019-05-23 Thread Chris Angelico
On Fri, May 24, 2019 at 10:48 AM MRAB wrote: > > On 2019-05-24 01:22, Chris Angelico wrote: > > What I'd recommend is a thread pool. Broadly speaking, it would look > > something like this: > > > > jobs = [...] > > > > def run_jobs(): > > while jobs: > > try: job = jobs.pop() > >

Re: More CPUs doen't equal more speed

2019-05-23 Thread MRAB
On 2019-05-24 01:22, Chris Angelico wrote: On Fri, May 24, 2019 at 10:07 AM Bob van der Poel wrote: Thanks all! The sound you are hearing is my head smacking against my hand! Or is it my hand against my head? Anyway, yes the problem is that I was naively using command.getoutput() which

Re: More CPUs doen't equal more speed

2019-05-23 Thread Chris Angelico
On Fri, May 24, 2019 at 10:07 AM Bob van der Poel wrote: > > Thanks all! The sound you are hearing is my head smacking against my hand! > Or is it my hand against my head? > > Anyway, yes the problem is that I was naively using command.getoutput() > which blocks until the command is finished. So,

Re: More CPUs doen't equal more speed

2019-05-23 Thread Bob van der Poel
Thanks all! The sound you are hearing is my head smacking against my hand! Or is it my hand against my head? Anyway, yes the problem is that I was naively using command.getoutput() which blocks until the command is finished. So, of course, only one process was being run at one time! Bad me! I

Re: Handling an connection error with Twython

2019-05-23 Thread MRAB
On 2019-05-23 22:55, Cecil Westerhof wrote: Cecil Westerhof writes: I am using Twython to post updates on Twitter. Lately there is now and then a problem with my internet connection. I am using: posted = twitter.update_status(status = message,

Re: More CPUs doen't equal more speed

2019-05-23 Thread MRAB
On 2019-05-23 22:41, Avi Gross via Python-list wrote: Bob, As others have noted, you have not made it clear how what you are doing is running "in parallel." I have a similar need where I have thousands of folders and need to do an analysis based on the contents of one at a time and have 8

[issue37028] Implement asyncio repl

2019-05-23 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +13447 stage: -> patch review ___ Python tracker ___ ___

[issue37028] Implement asyncio repl

2019-05-23 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +13446 stage: -> patch review ___ Python tracker ___ ___

[issue37028] Implement asyncio repl

2019-05-23 Thread Yury Selivanov
New submission from Yury Selivanov : Having an asyncio enabled repr where a top-level "await" possible would be a huge productivity boost. Using asyncio.run() in a REPL is hard, and besides it spawns a new event loop on every call. The big idea: we want users to be able to do this: $

[issue36876] Global C variables are a problem.

2019-05-23 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +13445 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2019-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Serhiy, It looks like Ivan approved your PR and was ready to merge it, but left it up to you for the final decision about incorporating changes from the competing PR. This is just a friendly ping in case you want to get it in for 3.8. Thanks! --

[issue37027] Return a safe proxy over a socket from get_extra_info('socket')

2019-05-23 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +13444 stage: -> patch review ___ Python tracker ___ ___

[issue37027] Return a safe proxy over a socket from get_extra_info('socket')

2019-05-23 Thread Yury Selivanov
Change by Yury Selivanov : -- components: +asyncio nosy: +asvetlov versions: +Python 3.8 ___ Python tracker ___ ___

[issue34541] pathlib.Path.iterdir doesn't throw an exception until you start iterating

2019-05-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +pitrou type: behavior -> enhancement versions: +Python 3.8 -Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue37027] Return a safe proxy over a socket from get_extra_info('socket')

2019-05-23 Thread Yury Selivanov
New submission from Yury Selivanov : Currently asyncio exposes the underlying transport socket directly, providing a way to modify (in a potentially disruptive way) the underlying transport connection. -- messages: 343332 nosy: yselivanov priority: normal severity: normal status:

[issue35990] ipaddress.IPv4Interface won't accept 2-tuple (address, mask)

2019-05-23 Thread Jack
Jack added the comment: confirmed in 3.7.3 -- nosy: +Jacktose ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37026] socketserver: BaseServer.handle_request() infinite loop

2019-05-23 Thread jmberg
New submission from jmberg : Hi, Alright - you may very well consider this to be a stupid idea and everything, but I figured I'd report it anyway, just so it's there even if you decide to ignore it. For context, I'm running python in a ARCH=um Linux system that has completely virtual time,

Re: Handling an connection error with Twython

2019-05-23 Thread Cecil Westerhof
Cecil Westerhof writes: > I am using Twython to post updates on Twitter. Lately there is now and > then a problem with my internet connection. I am using: > posted = twitter.update_status(status = message, >in_reply_to_status_id = message_id, >

RE: More CPUs doen't equal more speed

2019-05-23 Thread Avi Gross via Python-list
Bob, As others have noted, you have not made it clear how what you are doing is running "in parallel." I have a similar need where I have thousands of folders and need to do an analysis based on the contents of one at a time and have 8 cores available but the process may run for months if run

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread Paul Monson
Change by Paul Monson : -- pull_requests: +13443 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32528] Change base class for futures.CancelledError

2019-05-23 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +13442 stage: -> patch review ___ Python tracker ___ ___

[issue37025] Misleading error message "Python failed to load the default activation context"

2019-05-23 Thread Ralf Habacker
New submission from Ralf Habacker : When I started Kicad under Windows I got the following error message in dbgview: "Python could not load the default activation context". This message is issued by the Python runtime environment when checking the return value of the Windows API function

[issue35328] Set a environment variable for venv prompt

2019-05-23 Thread Brett Cannon
Brett Cannon added the comment: You can open a new PR with co-author or basing off of their fork if it's still around. -- ___ Python tracker ___

Re: PEP 594 cgi & cgitb removal

2019-05-23 Thread Gunnar Þór Magnússon
> nginx is the current hotness. CGI has not been hotness since the mid 90s. Serverless is the new hotness, and serverless is CGI. Technology is cyclical. -- https://mail.python.org/mailman/listinfo/python-list

[issue35328] Set a environment variable for venv prompt

2019-05-23 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: @brettcannon, yeah I saw that, but there hasn't been any progress since November. I'm still interested in this though. What would the correct workflow be? Pushing commits to the same PR or opening a new one with a co-author? --

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-05-23 Thread Brett Cannon
Brett Cannon added the comment: Virtual environments are not designed to be portable. For instance, if you have entry points installed then moving them to another machine would break their shebang lines. And even if you do it on your local machine there's no guarantee something else wasn't

[issue35328] Set a environment variable for venv prompt

2019-05-23 Thread Brett Cannon
Brett Cannon added the comment: @lys.nikolaou it looks like there was an initial PR, but it only updated things for Bash and not for all the other shells that we support for virtual environments. -- nosy: +brett.cannon ___ Python tracker

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-23 Thread Brett Cannon
Brett Cannon added the comment: This isn't a bug because the CSV format isn't malformed (which would be appropriate for csv.Error), but the file itself isn't appropriate encoded (or the proper encoding wasn't specified (hence UnicodeDecodeError). So the exception is appropriate. And we do

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 608876b6b1eb59538e6c29671a733033fb8b5be7 by Antoine Pitrou (Matěj Cepl) in branch 'master': bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled (GH-7778)

RE: More CPUs doen't equal more speed

2019-05-23 Thread David Raymond
You really need to give more info on what you're doing in doit() to know what's going on. Are you using subprocess, threading, multiprocessing, etc? Going off of what you've put there those nested for loops are being run in the 1 main thread. If doit() kicks off a program and doesn't wait for

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread David Bolen
David Bolen added the comment: Yeah, I think you're right. It looks like without an explicit code, it won't propagate the result as the exit code of cmd itself for those cases where cmd does exit (which would include the buildbots). -- ___

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread Paul Monson
Paul Monson added the comment: I did a quick test and it looks like exit /b %ERRORLEVEL% will propagate the exit code. -- ___ Python tracker ___

[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-05-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: More CPUs doen't equal more speed

2019-05-23 Thread Chris Angelico
On Fri, May 24, 2019 at 5:37 AM Bob van der Poel wrote: > > I've got a short script that loops though a number of files and processes > them one at a time. I had a bit of time today and figured I'd rewrite the > script to process the files 4 at a time by using 4 different instances of > python.

More CPUs doen't equal more speed

2019-05-23 Thread Bob van der Poel
I've got a short script that loops though a number of files and processes them one at a time. I had a bit of time today and figured I'd rewrite the script to process the files 4 at a time by using 4 different instances of python. My basic loop is: for i in range(0, len(filelist), CPU_COUNT):

[issue20443] __code__. co_filename should always be an absolute path

2019-05-23 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +13441 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread David Bolen
David Bolen added the comment: I've been investigating issues with test failures on my Windows buildbots seemingly not showing up in the master's web interface (but just showing warnings), and it appears likely due to this change. For example, test_urllib (a test problem from issue 36948)

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread Steve Dower
Steve Dower added the comment: Well, the good news is I can repro it on a PGO build in WSL. So now I just need to go learn all about gcc's PGO build, debug info, and how gdb renders it! -- ___ Python tracker

Re: Installation Problems with Python 3.7.3

2019-05-23 Thread Carolyn Evans
I got it working. Thanks On Mon, May 20, 2019 at 3:17 PM Igor Korot wrote: > Hi, > > On Mon, May 20, 2019 at 1:53 PM Carolyn Evans wrote: > > > > I am having trouble with re-installing python 3.7.3. > > Why do you need to reinstall? > What seems to be the problem? > > Thank you. > > > > > I

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread Steve Dower
Steve Dower added the comment: Ah no, it's expecting `builtin_id (self=..., v=...)` but getting `builtin_id ()` instead. -- ___ Python tracker ___

[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-05-23 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : Since recently, Homebrew refuses to link sqlite. Upon researching the whole thing, I found out that this is now considered a feature of Homebrew and not a bug. Thus homebrew users on macOS do not get the SQLite module installed by default, because it

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread Steve Dower
Steve Dower added the comment: Is it just expecting builtin_id() to have been inlined? That seems risky. -- nosy: +steve.dower ___ Python tracker ___

[issue36842] Implement PEP 578

2019-05-23 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-37023 to track the test_gdb failure: "test_gdb failed on AMD64 Debian PGO 3.x". -- nosy: +vstinner ___ Python tracker ___

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-23 Thread STINNER Victor
New submission from STINNER Victor : It's likely a regression caused by bpo-36842. https://buildbot.python.org/all/#/builders/47/builds/2854 Example of failure: == FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests)

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-23 Thread STINNER Victor
STINNER Victor added the comment: If someone wants to document that _start_new_thread() return value is similar to threading.get_ident() but not threading.get_native_id(): please go ahead and propose a PR :-) Adding support for AIX to get_native_id() should be done in a separated issue

[issue36842] Implement PEP 578

2019-05-23 Thread Steve Dower
Steve Dower added the comment: test_gdb failed on the Debian PGO buildbot https://buildbot.python.org/all/#builders/47/builds/2854 I'm going to do what I can to investigate, but I may be out of my depth here! -- stage: patch review -> commit review

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-23 Thread Michael J. Sullivan
Michael J. Sullivan added the comment: I believe that this is orthogonal to PEP 590. PyObject_CallMethodObjArgs and friends take varargs which need to be copied into an array one way or another. It is easy (and efficient) to prepend the base while copying the function arguments into the

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you hate Argument Clinic you can use METH_O and _PyLong_AsInt(). -- ___ Python tracker ___

[issue22577] local variable changes lost after pdb jump command

2019-05-23 Thread Henry Chen
Henry Chen added the comment: PEP 558 will fix this issue, which I've verified with the proposed implementation (https://github.com/python/cpython/pull/3640/files). Perhaps this issue can be closed? -- ___ Python tracker

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Sure. The simlest way is to use Argument Clinic. -- ___ Python tracker ___ ___

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-23 Thread Jake Tesler
Jake Tesler added the comment: Michael Felt - If you would like some help with adding/building AIX support for this functionality, tag me, I'd be glad to help out! :) -- ___ Python tracker

[issue37022] pdb: do_p and do_pp swallow exceptions from __repr__

2019-05-23 Thread daniel hahler
New submission from daniel hahler : Given: ``` class BadRepr: def __repr__(self): raise Exception('repr_exc') obj = BadRepr() __import__('pdb').set_trace() ``` ``` (Pdb) p obj (Pdb) pp obj (Pdb) ``` Possible patch - clumsy due to `self._getval` both printing any error already,

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-23 Thread Grant Wu
Change by Grant Wu : -- nosy: +grantwu -Grant Wu2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-23 Thread Mark Dickinson
Mark Dickinson added the comment: Related: `randrange(0)` raises an exception `choice([])` raises an exception Those are very different from `getrandbits(0)`: in both cases there's no reasonable value that can be returned: for the first case, there's no integer `x` with `0 <= x <

[issue36842] Implement PEP 578

2019-05-23 Thread Steve Dower
Steve Dower added the comment: New changeset b82e17e626f7b1cd98aada0b1ebb65cb9f8fb184 by Steve Dower in branch 'master': bpo-36842: Implement PEP 578 (GH-12613) https://github.com/python/cpython/commit/b82e17e626f7b1cd98aada0b1ebb65cb9f8fb184 --

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-23 Thread Steve Dower
Steve Dower added the comment: Is it worth also implementing if_nameindex() using (I assume) GetIfTable2Ex [1]? Or maybe just the simpler GetIfTable is sufficient - I'm not sure exactly what semantics Unix if_nameindex() has, whether it includes all logical adapters. [1]:

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > it's a bit surprising all on its own that `getrandbits(0)` > raises an exception. Given that there would be no randomness in the result, it makes sense to me that getrandbits(0) is documented to raise an exception. Related: `randrange(0)` raises

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: Extension Modules nosy: rhettinger, serhiy.storchaka, vstinner priority: normal severity: normal status: open title: Can _random.getrandbits() be converted to METH_FASTCALL? type: performance versions: Python 3.8

Re: How do you organize your virtual environments?

2019-05-23 Thread Chris Angelico
On Fri, May 24, 2019 at 12:42 AM Skip Montanaro wrote: > My way of thinking about virtual environments has always leaned in the > direction of a per-application setup, as that requires less > coordination (particularly when deploying to production), but I'm > willing to be convinced to move in

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the PR! -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

How do you organize your virtual environments?

2019-05-23 Thread Skip Montanaro
Perhaps the subject isn't quite correct, but here's what I'm after. Suppose you have five applications, each going through a series of dev, test and prod phases. I will assume without further explanation or justification, that the dev phase is wholly within the purview of the developers who gets

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Ezio Melotti
Ezio Melotti added the comment: New changeset 25d8404c358f3b1cc8321cdc74049d45dcb8d014 by Ezio Melotti (Michele Angrisano) in branch '2.7': bpo-36713: Rename duplicated method in test_unicode. (#13525) https://github.com/python/cpython/commit/25d8404c358f3b1cc8321cdc74049d45dcb8d014

[issue36978] `python3 -m pip install` has no `--requirement` option on Windows

2019-05-23 Thread Marco Sulla
Marco Sulla added the comment: Excuse me, after a python -m pip install --upgrade setuptools python -m pip install --upgrade pip it works like a charme. -- resolution: -> works for me stage: test needed -> resolved status: pending -> closed versions: +Python 3.6 -Python 3.8

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Michele Angrisano
Change by Michele Angrisano : -- keywords: +patch pull_requests: +13440 stage: needs patch -> patch review ___ Python tracker ___

[issue36797] Cull more oudated distutils information

2019-05-23 Thread miss-islington
miss-islington added the comment: New changeset a3488e5902f5c26e5cc289aec2518e7b5058e5d1 by Miss Islington (bot) in branch '3.7': bpo-36797: Reduce levels of indirection in outdated distutils docs (GH-13462) https://github.com/python/cpython/commit/a3488e5902f5c26e5cc289aec2518e7b5058e5d1

[issue36797] Cull more oudated distutils information

2019-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset e788057a9188ff37e232729815dfda2529079420 by Nick Coghlan in branch 'master': bpo-36797: Reduce levels of indirection in outdated distutils docs (#13462) https://github.com/python/cpython/commit/e788057a9188ff37e232729815dfda2529079420

[issue36797] Cull more oudated distutils information

2019-05-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +13439 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37016] Python embedded in C++ cannot open a file

2019-05-23 Thread Soumya Mohanty
Soumya Mohanty added the comment: Hello Stéphane, I appreciate the reply, but read the docs and they did not resolve my problem. I solved it by adding full paths to the file instead of just there names, even though the file being loaded was in the present working directory and when working

Handling an connection error with Twython

2019-05-23 Thread Cecil Westerhof
I am using Twython to post updates on Twitter. Lately there is now and then a problem with my internet connection. I am using: posted = twitter.update_status(status = message, in_reply_to_status_id = message_id, trim_user =

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Michele Angrisano
Michele Angrisano added the comment: I'm on it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Ezio Melotti
Ezio Melotti added the comment: The duplicate method is gone from 3.5+, but it is still present on 2.7: 2.7/Lib/ctypes/test/test_unicode.py:96 2.7/Lib/ctypes/test/test_unicode.py:110 The one at line 96 should be renamed "test_ascii_strict". Michele, do you want to work on a PR to fix it?

[issue1230540] sys.excepthook doesn't work in threads

2019-05-23 Thread STINNER Victor
STINNER Victor added the comment: There is a special case. If a thread calls os.fork() and Thread.run() raises an exception, the thread name is still logged even if there is only 1 thread after fork. Try attached fork_thread.py. Output on Python 3.7: --- main thread: spawn fork thread

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Michele Angrisano
Michele Angrisano added the comment: The proper link is this: cf448832ebca7ed34809168660fa96c3c61f8abb. Sorry. -- ___ Python tracker ___

Re: PEP 594 cgi & cgitb removal

2019-05-23 Thread Rhodri James
On 22/05/2019 19:29, Terry Reedy wrote: One of the factors being considered in removal decisions is the absence of anyone willing to list themselves in the expert's list https://devguide.python.org/experts/ as a maintainer for a module. At the moment, 3 other people have objected to the

Re: PEP 594 cgi & cgitb removal

2019-05-23 Thread Jon Ribbens via Python-list
On 2019-05-23, Paul Rubin wrote: > dieter writes: >> Should "cgi" disappear from the standard library > > It's also a concern that cgi may be disappearing from web servers. Last > I heard, nginx didn't support it. That's part of why I still use > apache, or (local only) even CGIHTTPServer.py.

[issue36713] duplicate method definition in Lib/ctypes/test/test_unicode.py

2019-05-23 Thread Michele Angrisano
Michele Angrisano added the comment: That method was already removed in cf44883. -- nosy: +mangrisano ___ Python tracker ___ ___

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-23 Thread Inada Naoki
Inada Naoki added the comment: I want to wait this until PEP 590 is implemented. Unlike CALL_METHOD, we can not avoid prepending self. New method signature may be like this: PyObject_VectorCallMethod(PyObject *name, PyObject **args, Py_ssize_t nargs, PyObject *kwds); And args[0] is self.

[issue35331] Incorrect __module__ attribute for _struct.Struct and perhaps a few others

2019-05-23 Thread Dan Snider
Change by Dan Snider : -- nosy: -bup ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35331] Incorrect __module__ attribute for _struct.Struct and perhaps a few others

2019-05-23 Thread Dan Snider
Change by Dan Snider : -- nosy: +bup ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37020] Invalid floating point multiplication result

2019-05-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Relevant doc : https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +xtreak ___ Python tracker ___

  1   2   >