[issue36377] Python 'datastructures.html' docs page needs improvement because of ambiguity

2019-04-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36377] Python 'datastructures.html' docs page needs improvement because of ambiguity

2019-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b00479d42aaaed589d8b374bf5e5c6f443b0b499 by Raymond Hettinger (Emmanuel Arias) in branch 'master': bpo-36377: Specify that range() can not be compared (GH-12468)

Re: Handy utilities = Friday Filosofical Finking

2019-04-01 Thread DL Neil
On 2/04/19 1:56 PM, Cameron Simpson wrote: On 02Apr2019 13:14, DL Neil wrote: On 2/04/19 11:57 AM, Cameron Simpson wrote: On 29Mar2019 09:32, DL Neil wrote: Do you 'keep' these, or perhaps next time you need something you've 'done before' do you remember when/where a technique was last

[issue36364] errors in multiprocessing.shared_memory examples

2019-04-01 Thread Davin Potts
Davin Potts added the comment: Very much agreed, they're moving over to the main docs. -- ___ Python tracker ___ ___

[issue36501] Remove POSIX.1e ACLs in tests that rely on default permissions behavior

2019-04-01 Thread Ivan Pozdeev
Change by Ivan Pozdeev : -- keywords: +patch pull_requests: +12584 stage: -> patch review ___ Python tracker ___ ___

[issue36501] Remove POSIX.1e ACLs in tests that rely on default permissions behavior

2019-04-01 Thread Ivan Pozdeev
New submission from Ivan Pozdeev : In Linuxes with ACLs enabled, the following tests fail, as Steve Dower discovered in https://mail.python.org/pipermail/python-dev/2019-March/156929.html: == FAIL: test_mode

Re: How call method from a method in same class?

2019-04-01 Thread Dave
On 4/1/19 10:29 PM, Cameron Simpson wrote: On 01Apr2019 22:02, Dave wrote: As classes get more complex, it is good to call a function to do some of the processing, and make the code easier to follow.  My question is how to do that?  I've attached some silly code to illustrate the point.  The

Re: Handy utilities = Friday Filosofical Finking

2019-04-01 Thread Chris Angelico
On Tue, Apr 2, 2019 at 1:21 PM DL Neil wrote: > > Sometimes, I recollect and reference, which creates some very weird > > interdependencies until I get around to refactoring... > > but some fairly hairy "technical debt" meantime? > > > >

Re: How call method from a method in same class?

2019-04-01 Thread Cameron Simpson
On 01Apr2019 22:02, Dave wrote: As classes get more complex, it is good to call a function to do some of the processing, and make the code easier to follow. My question is how to do that? I've attached some silly code to illustrate the point. The error is: name 'validScale' is not defined.

Re: How call method from a method in same class?

2019-04-01 Thread Dave
On 4/1/19 10:02 PM, Dave wrote: As classes get more complex, it is good to call a function to do some of the processing, and make the code easier to follow.  My question is how to do that?  I've attached some silly code to illustrate the point.  The error is: name 'validScale' is not defined. 

Re: How call method from a method in same class?

2019-04-01 Thread Dave
On 4/1/19 10:12 PM, Irv Kalb wrote: On Apr 1, 2019, at 7:02 PM, Dave wrote: As classes get more complex, it is good to call a function to do some of the processing, and make the code easier to follow. My question is how to do that? I've attached some silly code to illustrate the point.

Re: Handy utilities = Friday Filosofical Finking

2019-04-01 Thread DL Neil
On 2/04/19 1:25 PM, Chris Angelico wrote: On Tue, Apr 2, 2019 at 11:16 AM DL Neil wrote: One of the points which intrigue me is that my colleagues don't keep snippets/a library, preferring to remember (hah!) when/where they used particular techniques in the past, and copying/duplicating, to

Re: How call method from a method in same class?

2019-04-01 Thread Dan Sommers
On 4/1/19 10:02 PM, Dave wrote: def validScale(self, scaleName): if scaleName.upper == 'F' or 'C' or 'K': return True else: return False def convertTemp(self): """ Converts temperature scale if scales valid.""" if

Re: How call method from a method in same class?

2019-04-01 Thread Irv Kalb
> On Apr 1, 2019, at 7:02 PM, Dave wrote: > > As classes get more complex, it is good to call a function to do some of the > processing, and make the code easier to follow. My question is how to do > that? I've attached some silly code to illustrate the point. The error is: > name

[issue36500] Add "regen-*" equivalent projects for Windows builds

2019-04-01 Thread anthony shaw
Change by anthony shaw : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

How call method from a method in same class?

2019-04-01 Thread Dave
As classes get more complex, it is good to call a function to do some of the processing, and make the code easier to follow. My question is how to do that? I've attached some silly code to illustrate the point. The error is: name 'validScale' is not defined. Well, yes it is, but maybe not

[issue36485] Establish a uniform way to clear all caches in a given module

2019-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Quick question, would the existing sys.reload() logic suffice? -- mymodule.py -- cache = {} # On reload, this would clear the cache def f(x): if x in cache: return cache[x] y = x**2 cache[x] = y return y

[issue36485] Establish a uniform way to clear all caches in a given module

2019-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Brett] > To me, the priority is clearing caches on a per-module basici > and having a clear-all mechanism can be beneficial, not the > other way around. That makes more sense. I'm changing the title to match the actual feature request and intent: "Add a

Re: Handy utilities = Friday Filosofical Finking

2019-04-01 Thread Cameron Simpson
On 02Apr2019 13:14, DL Neil wrote: On 2/04/19 11:57 AM, Cameron Simpson wrote: On 29Mar2019 09:32, DL Neil wrote: Do you 'keep' these, or perhaps next time you need something you've 'done before' do you remember when/where a technique was last used/burrow into 'history'? (else, code it

[issue36500] Add "regen-*" equivalent projects for Windows builds

2019-04-01 Thread anthony shaw
anthony shaw added the comment: Project now also does: regen-symbol (regenerate Lib/symbol.py) and regen-keyword (regenerate Lib/keyword.py) -- ___ Python tracker ___

Re: Handy utilities = Friday Filosofical Finking

2019-04-01 Thread Chris Angelico
On Tue, Apr 2, 2019 at 11:16 AM DL Neil wrote: > One of the points which intrigue me is that my colleagues don't keep > snippets/a library, preferring to remember (hah!) when/where they used > particular techniques in the past, and copying/duplicating, to fit the > new system's requirements. Am

[issue36500] Add "regen-*" equivalent projects for Windows builds

2019-04-01 Thread anthony shaw
Change by anthony shaw : -- nosy: +brett.cannon, steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36500] Add "regen-*" equivalent projects for Windows builds

2019-04-01 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +12583 stage: -> patch review ___ Python tracker ___ ___

Re: Handy utilities = Friday Filosofical Finking

2019-04-01 Thread DL Neil
Gidday Cameron, Thanks for this - some thoughts below:- On 2/04/19 11:57 AM, Cameron Simpson wrote: On 29Mar2019 09:32, DL Neil wrote: How do you keep, use, and maintain those handy snippets, functions, classes... - units of code, which you employ over-and-over again? Having coded 'stuff'

[issue36500] Add "regen-*" equivalent projects for Windows builds

2019-04-01 Thread anthony shaw
New submission from anthony shaw : Now that pgen is written in Python, it'd be useful for Windows users to be able to rebuild grammar and tokens into the parser table. The current hook (make regen-grammar) is built into the Makefile. Add support for VS2017+ vcxproj files to call the script

Re: python os.chdir() Windows Error 2

2019-04-01 Thread eryk sun
On 4/1/19, grossmu...@gmail.com wrote: > > os.chdir('C:\\Users\\Ayla\\Documents\\Uni\\Master_Umweltingenieurwesen\\ > Study_Project\\kerschbaum_input') > os.chdir('C:/Users/Ayla/Documents/Uni/Master_Umweltingenieurwesen/ > Study_Project/kerschbaum_input') These string literals should work if the

[issue36210] correct AIX logic in setup.py for non-existant optional extensions

2019-04-01 Thread عشقى و حناني
Change by عشقى و حناني : Added file: https://bugs.python.org/file48241/name of the past ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36499] unpickling of a datetime object in 3.5 fails when pickled with 2.7

2019-04-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36499] unpickling of a datetime object in 3.5 fails when pickled with 2.7

2019-04-01 Thread Vadim
New submission from Vadim : Unpickling fails when pickling is performed with 2.7 (pickledatetime.py) and unpickling is done with 3.5 (Tested on Ubuntu 16.04) Please see detailed error description and workaround in the comments to the attached files. -- components: Library (Lib)

[issue36432] Running python test suite fails on macOS 10.14.4 with resource.RLIMIT_STACK error

2019-04-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I confirm that reverting 335ab5b66f432ae3713840ed2403a11c368f5406 work as a workaround, and does not seem to create regressions. -- ___ Python tracker

Re: Handy utilities = Friday Filosofical Finking

2019-04-01 Thread Cameron Simpson
On 29Mar2019 09:32, DL Neil wrote: How do you keep, use, and maintain those handy snippets, functions, classes... - units of code, which you employ over-and-over again? Having coded 'stuff' once, most of us will keep units of code, "utilities", which we expect will be useful in-future (DRY

[issue36432] Running python test suite fails on macOS 10.14.4 with resource.RLIMIT_STACK error

2019-04-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2019-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +12582 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2019-04-01 Thread miss-islington
miss-islington added the comment: New changeset 9139f926a8d8e5b71830cb7e10b0807836b5e9a4 by Miss Islington (bot) (Daniel Hahler) in branch 'master': bpo-13120: fix typo with test_issue13120() method name (GH-12250)

[issue32413] Document that locals() may return globals()

2019-04-01 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-04-01 Thread Alexey Muranov
On lun., avril 1, 2019 at 6:00 PM, python-list-requ...@python.org wrote: On Sun, Mar 31, 2019 at 1:09 PM Alexey Muranov wrote: On dim., Mar 31, 2019 at 6:00 PM, python-list-requ...@python.org wrote: > On Sat, Mar 30, 2019, 5:32 AM Alexey Muranov > > wrote: > >> >> On ven., Mar 29,

Logging module and datetime - oil & water for some reason?

2019-04-01 Thread Skip Montanaro
I assiduously avoided using Python's logging package for about the first dozen years of its existence. I eventually gave in and started using it relatively recently in the guise of a thin wrapper provided by a colleague at work. Today I had occasion to tweak the timestamp format only to discover

[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-04-01 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Thanks for the confirmation! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Abdur-Rahmaan Janhangeer wrote: > Since this is IRC, you might want to see a demo here: > https://github.com/Abdur-rahmaanJ/honeybot/blob/master/honeybot/main.py Yes. However get these def text() and loop while 1: working together. def text(): while True: mess =

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Rhodri James wrote: > > I'm not an expert, but looking at RFC-1459 it looks like your final > parameter (the message) needs to be preceded by a colon. In other words > you want: > > s.send(bytes("PRIVMSG " + channel + " :" + mess + "\n", "UTF-8")) > > (Try printing out the line

Re: Losing words

2019-04-01 Thread Chris Angelico
On Tue, Apr 2, 2019 at 7:11 AM John Doe wrote: > > On 2019-04-01, Chris Angelico wrote: > > > > Cool. Please don't post context-free messages though - not everyone > > knows that you were talking about IRC. (Part of that is because your > > subject line didn't mention IRC either.) > > > I've

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Chris Angelico wrote: > > Cool. Please don't post context-free messages though - not everyone > knows that you were talking about IRC. (Part of that is because your > subject line didn't mention IRC either.) > I've mentioned it in a mother post mate. > If you're going to do a lot

Re: Losing words

2019-04-01 Thread Chris Angelico
On Tue, Apr 2, 2019 at 6:36 AM John Doe wrote: > > On 2019-04-01, Roel Schroeven wrote: > > This is what 'while' is made for: > > > > def text(): > > while True: > > mess = input("> ") > > s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", > > "UTF-8")) > > > >

[issue36493] Add math.midpoint(a,b) function

2019-04-01 Thread Stefan Behnel
Stefan Behnel added the comment: I buy the YAGNI argument and won't fight for this. Thanks for your input. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

Re: Losing words

2019-04-01 Thread Chris Angelico
On Tue, Apr 2, 2019 at 6:31 AM John Doe wrote: > > > The colon was the solution, thanks. > Cool. Please don't post context-free messages though - not everyone knows that you were talking about IRC. (Part of that is because your subject line didn't mention IRC either.) If you're going to do a

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Roel Schroeven wrote: > This is what 'while' is made for: > > def text(): > while True: > mess = input("> ") > s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", > "UTF-8")) > see it working thanks, indeed while is powerful, had to add colon to

Re: Losing words

2019-04-01 Thread Abdur-Rahmaan Janhangeer
Since this is IRC, you might want to see a demo here: https://github.com/Abdur-rahmaanJ/honeybot/blob/master/honeybot/main.py Abdur-Rahmaan Janhangeer Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: Losing words

2019-04-01 Thread John Doe
The colon was the solution, thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Remote Work

2019-04-01 Thread Abdur-Rahmaan Janhangeer
Maybe add your field web? data science? machine learning? automation? computer vision? ... Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Python Remote Work

2019-04-01 Thread Shane
Hi, Bit of a long shot! I am looking for remote work and like the look of Python. I am an Australian, with a degree in Commercial computing, with 15 years using Delphi in a business environment. I am looking for a company to X train me to Python remotely, or maybe even a remote Python

[issue36210] correct AIX logic in setup.py for non-existant optional extensions

2019-04-01 Thread Michael Felt
Change by Michael Felt : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36210] correct AIX logic in setup.py for non-existant optional extensions

2019-04-01 Thread Michael Felt
Michael Felt added the comment: Updating this to not only correct the failure of 3rd-party library ncurses (while IBM curses builds with no issue) to also stop announcing that the optional modules osaudiodev and spwd have not been built. Neither are supported on AIX - so they will never be

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2019-04-01 Thread Robert Marshall
Robert Marshall added the comment: The pull request is now ready for a review. Apologies for the delay - took me a bit longer to circle back on this than I would have liked. -- ___ Python tracker

[issue36085] Enable better DLL resolution

2019-04-01 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36485] Add a way to clear all caches

2019-04-01 Thread Brett Cannon
Brett Cannon added the comment: RE: "And do you think polling for a new magic attribute is the right approach?": my thinking behind that idea is that by standardizing the function name it's easy to tell if there's a cache, but you can also do away with the registration with a 3 lines of

Re: Losing words

2019-04-01 Thread Roel Schroeven
John Doe schreef op 1/04/2019 om 19:16: On 2019-04-01, Joel Goldstick wrote: def text(): mess = input("> ") s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8")) text() Is this a typo or are you calling text() from within text()? Indeed I do :-) I was

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Chris Angelico wrote: > > Use a loop, not recursion :) > I can guess only you mean: while but I've got no idea while what. -- https://mail.python.org/mailman/listinfo/python-list

Re: Losing words

2019-04-01 Thread MRAB
On 2019-04-01 18:16, John Doe wrote: On 2019-04-01, Joel Goldstick wrote: def text(): mess = input("> ") s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8")) text() Is this a typo or are you calling text() from within text()? Indeed I do :-) I was

Re: Losing words

2019-04-01 Thread Chris Angelico
On Tue, Apr 2, 2019 at 4:21 AM John Doe wrote: > > On 2019-04-01, Joel Goldstick wrote: > >> > >> def text(): > >> mess = input("> ") > >> s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8")) > >> > >> text() > >> > > > > Is this a typo or are you calling text()

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Joel Goldstick wrote: >> >> def text(): >> mess = input("> ") >> s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8")) >> >> text() >> > > Is this a typo or are you calling text() from within text()? >> Indeed I do :-) I was thinking on another way

Re: Losing words

2019-04-01 Thread Grant Edwards
On 2019-04-01, Rhodri James wrote: I'm learning SOCKETS and working with Irc. --- s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) When more than one word ( for example: This is a

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Jon Ribbens wrote: > On 2019-04-01, John Doe wrote: >> I'm learning SOCKETS and working with Irc. >> --- >> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) >> >> When more than one word ( for

Re: Losing words

2019-04-01 Thread Rhodri James
On 01/04/2019 16:14, John Doe wrote: On 2019-04-01, Chris Angelico wrote: I'm learning SOCKETS and working with Irc. --- s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) When more than one word ( for

Re: Losing words

2019-04-01 Thread Jon Ribbens
On 2019-04-01, John Doe wrote: > I'm learning SOCKETS and working with Irc. > --- > s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) > > When more than one word ( for example: This is a message) > in *message* it

[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-04-01 Thread Lars Gustäbel
Lars Gustäbel added the comment: tarfile does not use the `format` argument for reading, it will be detected. You can even mix different formats in one archive and tarfile will be fine with it. -- nosy: +lars.gustaebel ___ Python tracker

Re: Losing words

2019-04-01 Thread Joel Goldstick
On Mon, Apr 1, 2019 at 11:16 AM John Doe wrote: > > On 2019-04-01, Chris Angelico wrote: > >> > >> I'm learning SOCKETS and working with Irc. > >> --- > >> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) > >> > >>

RE: Syntax for one-line "nonymous" functions in "declaration style"

2019-04-01 Thread Schachner, Joseph
Re: ">> Neither i like how a function magically turns into a generator if the >> keyword `yield` appears somewhere within its definition. > I agree, there should have been a required syntactic element on the "def" > line as well to signal it immediately to the reader. It won't stop me from >

Re: python os.chdir() Windows Error 2

2019-04-01 Thread Calvin Spealman
What are you actually trying to do? os.chdir() simply changes the current working directory of your process. It doesn't read any data or "import" or really have any affect on its own. The current directory is the directory you ran the script from in the first place, which is where files will be

python os.chdir() Windows Error 2

2019-04-01 Thread grossmudda
Hey guys, I´ve got a problem importing a file with os.chdir. I´ve done a lot of research but still I can´t fix it. For any suggestions I would be so thankful! This is what I´ve tried so far: import os import numpy as np import matplotlib.pyplot as plt

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, David Raymond wrote: > https://docs.python.org/3.7/library/socket.html#socket.socket.send > > .send returns the number of bytes that it actually succeeded in sending. From > the docs: "Applications are responsible for checking that all data has been > sent; if only some of the

[issue36157] Document PyInterpreterState_Main().

2019-04-01 Thread Eric Snow
Eric Snow added the comment: Thanks for working on this, Joannah! :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Chris Angelico wrote: >> >> I'm learning SOCKETS and working with Irc. >> --- >> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) >> >> When more than one word ( for example: This is a message) >> in

[issue36157] Document PyInterpreterState_Main().

2019-04-01 Thread miss-islington
miss-islington added the comment: New changeset 35fc38e5e82d18ceec95af9af2103319497e2eaf by Miss Islington (bot) in branch '3.7': bpo-36157:Document PyInterpreterState_Main() (GH-12238) https://github.com/python/cpython/commit/35fc38e5e82d18ceec95af9af2103319497e2eaf --

[issue36157] Document PyInterpreterState_Main().

2019-04-01 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +12581 stage: commit review -> patch review ___ Python tracker ___

[issue36157] Document PyInterpreterState_Main().

2019-04-01 Thread miss-islington
miss-islington added the comment: New changeset 8c61739defd88c7f79e86537886c33745843ce01 by Miss Islington (bot) (Joannah Nanjekye) in branch 'master': bpo-36157:Document PyInterpreterState_Main() (GH-12238) https://github.com/python/cpython/commit/8c61739defd88c7f79e86537886c33745843ce01

[issue36487] Make C-API docs clear about what the "main" interpreter is

2019-04-01 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

RE: Losing words

2019-04-01 Thread David Raymond
https://docs.python.org/3.7/library/socket.html#socket.socket.send .send returns the number of bytes that it actually succeeded in sending. From the docs: "Applications are responsible for checking that all data has been sent; if only some of the data was transmitted, the application needs to

[issue36495] Out-of-bounds array reads in Python/ast.c

2019-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset a4d78362397fc3bced6ea80fbc7b5f4827aec55e by Guido van Rossum (Brad Larsen) in branch 'master': bpo-36495: Fix two out-of-bounds array reads (GH-12641) https://github.com/python/cpython/commit/a4d78362397fc3bced6ea80fbc7b5f4827aec55e

[issue36498] combining dict comprehensing and lists lead to IndexError

2019-04-01 Thread SilentGhost
SilentGhost added the comment: IndexError is caused by the fact that split results in an empty list. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed type: compile error -> behavior ___ Python tracker

[issue36498] combining dict comprehensing and lists lead to IndexError

2019-04-01 Thread Benjamin Krala
Benjamin Krala added the comment: Correction of typo in the last sentence: To avoid the bug you can change the 1 into -1 -- ___ Python tracker ___

[issue36498] combining dict comprehensing and lists lead to IndexError

2019-04-01 Thread Benjamin Krala
New submission from Benjamin Krala : Following code snipped leads to an IndexError in the last line. It basically puts EN_cmw into a dict where is a split on '->'. It avoid the bug you can change the 1 into -1. (By definition it shouldnt make a difference) EN_cmw = '''abandonned->abandoned

[issue36488] os.sendfile() on BSD and macOS does not return bytes sent on EINTR

2019-04-01 Thread Josh Rosenberg
Josh Rosenberg added the comment: Wasn't the point of PEP475 that all EINTR returns would be explicitly handled by retrying rather than forcing the user to handle it? Seems like the correct solution is still to retry, but on OSX/FreeBSD we'd need to update the offset and count arguments to

Re: Losing words

2019-04-01 Thread Chris Angelico
On Tue, Apr 2, 2019 at 12:41 AM John Doe wrote: > > I'm learning SOCKETS and working with Irc. > --- > s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) > > When more than one word ( for example: This is a message) >

[issue36497] Undocumented behavior in csv.Sniffer (preferred delimiters)

2019-04-01 Thread SilentGhost
Change by SilentGhost : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch versions: +Python 3.8 ___ Python tracker ___

[issue36497] Undocumented behavior in csv.Sniffer (preferred delimiters)

2019-04-01 Thread Thomas Buhrmann
New submission from Thomas Buhrmann : When the Sniffer detects more than one possible delimiter, as e.g. in the following file "a;b;c;d,e;f;g;h" the result will always be the ',' delimiter, independent of how "dominant" another delimiter is. This is because the codepath analyzing dominance

Losing words

2019-04-01 Thread John Doe
I'm learning SOCKETS and working with Irc. --- s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) When more than one word ( for example: This is a message) in *message* it sends the FIRST word only "This" and skips

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2019-04-01 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2019-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 8384670615a90418fc52c3881242b7c10d1f2b13 by Inada Naoki in branch '3.7': bpo-20844: open script file with "rb" mode (GH-12616) https://github.com/python/cpython/commit/8384670615a90418fc52c3881242b7c10d1f2b13 --

[issue30587] Mock with spec object does not ensure method call signatures

2019-04-01 Thread Michael Foord
Michael Foord added the comment: Spec objects are currently dumb. It would be a new feature to add signature validation to them. I think it would be a useful feature though as currently autospec sort of obsoletes spec objects whilst being more heavyweight and harder to use. I think it

[issue31904] Python should support VxWorks RTOS

2019-04-01 Thread LihuaZhao
Change by LihuaZhao : -- pull_requests: +12580 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2019-04-01 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12579 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2019-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 10654c19b5e6efdf3c529ff9bf7bcab89bdca1c1 by Inada Naoki in branch 'master': bpo-20844: open script file with "rb" mode (GH-12616) https://github.com/python/cpython/commit/10654c19b5e6efdf3c529ff9bf7bcab89bdca1c1 -- nosy: +inada.naoki

[issue27992] Clarify %(prog)s in argparse help formatter returns basename of sys.argv[0] by default

2019-04-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. To be little more clear it returns the "basename of sys.argv[0]" at [0] than the attached patch that says "uses part of ``sys.argv[0]``" . [0]

[issue36026] Different error message when sys.settrace is used

2019-04-01 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36026] Different error message when sys.settrace is used

2019-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 62f9588663ebfea1735e9d142ef527395a6c2b95 by Inada Naoki in branch 'master': bpo-36026: make descr error message consistent (GH-11930) https://github.com/python/cpython/commit/62f9588663ebfea1735e9d142ef527395a6c2b95 --

[issue31904] Python should support VxWorks RTOS

2019-04-01 Thread LihuaZhao
Change by LihuaZhao : -- pull_requests: +12578 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36493] Add math.midpoint(a,b) function

2019-04-01 Thread Tim Peters
Tim Peters added the comment: I'm inclined to agree with Mark - the wholly naive algorithm is already "perfect" away from extreme (whether large or small) magnitudes, and can't be beat for speed either. This kind of thing gets much more attractive in IEEE single precision, where getting

[issue36492] Deprecate passing some conflicting arguments by keyword

2019-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixes (but not deprecations) were backported to 3.7. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36492] Deprecate passing some conflicting arguments by keyword

2019-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a37f356de19828241bf19129f804369794c72ed3 by Serhiy Storchaka in branch '3.7': [3.7] bpo-36492: Fix passing special keyword arguments to some functions. (GH-12637) (GH-12645)

[issue36492] Deprecate passing some conflicting arguments by keyword

2019-04-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +12577 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >