[issue25654] test_multiprocessing_spawn ResourceWarning with -Werror

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an alternative patch that uses closefd=False. -- Added file: http://bugs.python.org/file41075/multiprocessing_no_close_fd.patch ___ Python tracker

[issue25654] test_multiprocessing_spawn ResourceWarning with -Werror

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good point! The question is whether we want to see resource warnings when override standard streams with open files (usually without closefd=False)? -- ___ Python tracker

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-19 Thread Martin Panter
Martin Panter added the comment: Okay. For the gzip module, I cannot easily test this myself. Quickly looking at other cases, I guess it would look something like this, but I need to spend some time understanging the bigmemtest decorator properly: @unittest.skipIf(sys.maxsize < _4G, "Requires

[issue25654] test_multiprocessing_spawn ResourceWarning with -Werror

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can commit your patch right now (it shouldn't make things worse), and continue to work on additional tests. -- ___ Python tracker

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please add tests for other two functions? And tests for the gzip module? -- ___ Python tracker ___

Re: handling of non-ASCII filenames?

2015-11-19 Thread Ulli Horlacher
Christian Gollwitzer wrote: > Am 18.11.15 um 17:45 schrieb Ulli Horlacher: > > This is my encoding function: > > > > def url_encode(s): > >u = '' > >for c in list(s): > > if match(r'[_=:,;<>()+.\w\-]',c): > >u += c > > else: > >u += '%' +

[issue25663] Make rlcompleter avoid duplicate global names

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nice work. An alternative approach is to make "matches" a dict. And instead of if match not in seen: seen.add(word) matches.append(match) use just matches[word] = match I don't know what approach is better. Added other minor

[issue25665] typing.NamedTuple instances are not picklable.

2015-11-19 Thread Ashwini Chaudhary
New submission from Ashwini Chaudhary: Currently namedtuple(https://hg.python.org/cpython/file/3.5/Lib/collections/__init__.py#l418) sets the `__module__` attribute by looking up `__name__` in calling frame's globals. As in the case of `typing.NamedTuple` it is always going to be 'typing'

[issue25665] typing.NamedTuple instances are not picklable.

2015-11-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +gvanrossum, rhettinger ___ Python tracker ___

Re: handling of non-ASCII filenames?

2015-11-19 Thread Christian Gollwitzer
Am 19.11.15 um 08:54 schrieb Ulli Horlacher: Christian Gollwitzer wrote: Am 18.11.15 um 17:45 schrieb Ulli Horlacher: This is my encoding function: def url_encode(s): u = '' for c in list(s): if match(r'[_=:,;<>()+.\w\-]',c): u += c else:

[issue12346] Python source code build fails with old mercurial

2015-11-19 Thread Luke Erlacher
Luke Erlacher added the comment: This is not fixed in 2.7.10. -- nosy: +Luke Erlacher ___ Python tracker ___

EuroPython 2016: Dates and URL available

2015-11-19 Thread M.-A. Lemburg
The EuroPython 2016 Team is pleased to account the dates for EuroPython 2016 in Bilbao, Basque Country, Spain: Sunday, July 17 - Sunday, July 24 2016 Pre-launch Website -- To keep you updated, we have put together a pre-launch website for the conference:

PyCA cryptography 1.1.1 released

2015-11-19 Thread Paul Kehrer
PyCA/cryptography (https://github.com/pyca/cryptography) 1.1.1 has been released. cryptography is a package which provides cryptographic recipes and primitives to Python developers. Our goal is for it to be your "cryptographic standard library". We support Python 2.6-2.7, Python 3.3+, and PyPy.

[issue25666] Python unexpectedly ignores a signal after fork

2015-11-19 Thread jon orebro
New submission from jon orebro: Description: I found a slight problem with signal handling. It seems that if you have a signal handler setup for a signal, right after a fork the child ignores that signal for a short time. This is regardless of what the signal handler is setup to do. This can

[issue25665] typing.NamedTuple instances are not picklable.

2015-11-19 Thread Ashwini Chaudhary
Ashwini Chaudhary added the comment: Attached patch. -- keywords: +patch Added file: http://bugs.python.org/file41073/issue25665.patch ___ Python tracker

Re: how do I learn python ?

2015-11-19 Thread Michiel Overtoom
> On 18 Nov 2015, at 05:58, 夏华林 wrote: > (nothing) You might want to start at https://www.python.org/about/gettingstarted/ PS. Leaving the body of an email or usenet article empty is considered bad form. Greetings, -- https://mail.python.org/mailman/listinfo/python-list

[issue20438] inspect: Deprecate getfullargspec?

2015-11-19 Thread Vedran Čačić
Vedran Čačić added the comment: > Also, it is worth noting, that Signature API does not provide 100% of functionality that deprecated APIs have. It is important to do a soft deprecation of outdated APIs in 3.5 to gather users feedback, and improve Signature object. Well, here is a feedback

how do I learn python ?

2015-11-19 Thread 夏华林
-- https://mail.python.org/mailman/listinfo/python-list

PubMed / Entrez

2015-11-19 Thread c.buhtz
I am looking for a way to use the PubMed (medical research search engine) API (aka Entrez) with Python3. Does anyone know packages for that? -- GnuPGP-Key ID 0751A8EC -- https://mail.python.org/mailman/listinfo/python-list

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can commit your patch right now (it shouldn't make things worse) and add new tests later. -- ___ Python tracker

Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-19 Thread Chris Angelico
On Fri, Nov 20, 2015 at 5:42 AM, Ian Kelly wrote: > BartC on the other hand is just complaining about an aspect of Python > that is legitimately controversial. IMO it's controversial mainly because there's an easy and obvious syntax for early binding, but late binding

[issue25634] Add a dedicated subclass for attribute missing errors

2015-11-19 Thread Jun Wang
Jun Wang added the comment: I think this is a common problem while using both __getattr__ and descriptor/property. A descriptor example: class Descriptor(): def __get__(self, instance, owner=None): raise AttributeError('Implicitly suppressed') class A(): d =

Re: What is a function parameter =[] for?

2015-11-19 Thread BartC
On 19/11/2015 19:09, Chris Angelico wrote: On Fri, Nov 20, 2015 at 5:50 AM, BartC wrote: But you're not going to tell me what it is I got wrong! I said that Python's "=" does a very shallow copy. And I stated that in A=B, something of B must be copied into A. I (and probably

[issue25634] Add a dedicated subclass for attribute missing errors

2015-11-19 Thread R. David Murray
R. David Murray added the comment: The more detailed discussion should happen on python-ideas. I'm going to close this for now, but if there's a consensus there about what action to take this issue could be reopened. (Or a new one created, whatever makes the most sense at that time.)

Re: What is a function parameter =[] for?

2015-11-19 Thread Chris Angelico
On Fri, Nov 20, 2015 at 6:48 AM, BartC wrote: > On 19/11/2015 19:09, Chris Angelico wrote: >> >> On Fri, Nov 20, 2015 at 5:50 AM, BartC wrote: >>> >>> But you're not going to tell me what it is I got wrong! >>> >>> I said that Python's "=" does a very shallow

Re: What is a function parameter =[] for?

2015-11-19 Thread Mark Lawrence
On 19/11/2015 17:30, BartC wrote: On 19/11/2015 16:01, Steven D'Aprano wrote: On Fri, 20 Nov 2015 12:19 am, BartC wrote: You know, for somebody who claims to design and implement your own languages, you sometimes go to a remarkable effort to claim to be a dummy. You write your own

Re: What is a function parameter =[] for?

2015-11-19 Thread Oscar Benjamin
On 19 November 2015 at 18:19, BartC wrote: >>> >>> if you write A=B then something of B needs to have been copied into >>> A, even if it's just the reference that B contains. Otherwise it would be >>> difficult to get A to refer to the same object as B. >> >> Please, PLEASE, go

[issue25654] test_multiprocessing_spawn ResourceWarning with -Werror

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot about issue21779. And there was at least yet one duplicate issue23827. Thanks for the reminder Davin. The patch in issue21779 fixes only symptoms, makes failed test more lenient. I prefer to got rid of resource warnings at all. --

Re: Why doesn't this method have access to its "self" argument?

2015-11-19 Thread Peter Otten
Robert Latest via Python-list wrote: > I found a workaround using a wrapper method which calls a C function, > passing the instance as a separate argument. It works, and I cannot see > any disadvantage. It's just not as elegant as I'd like it to be, and I > don't understand WHY the C "method"

[issue25673] unittest assertLessEqual not working properly with lists

2015-11-19 Thread kehlert
New submission from kehlert: I attached a file that explains the issue. Basically, assertLessEqual only seems to compare the first elements of the two lists and ignores the others. Thus a test can pass when it shouldn't. -- files: example.py messages: 254920 nosy: kehlert priority:

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Guido van Rossum
Guido van Rossum added the comment: No, I mentioned the idea of a warning in the thread on the python-tulip mailing list, but decided not to do it after all. -- ___ Python tracker

[issue25672] set SSL_MODE_RELEASE_BUFFERS

2015-11-19 Thread Cory Benfield
Cory Benfield added the comment: Ok, I've just uploaded an initial draft of the patch for review. -- keywords: +patch Added file: http://bugs.python.org/file41083/ssl.patch ___ Python tracker

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch cures only the symptom, the failure of one rigid test. A warning still is emitted in applications that use multiprocessing. Closed in favor of duplicate issue25654 with patches that are intended to fix the cause of warnings. In any case thank

[issue25673] unittest assertLessEqual not working properly with lists

2015-11-19 Thread Ezio Melotti
Ezio Melotti added the comment: This is how comparison works for sequences and it's not a bug: >>> a = [1, 2] >>> b = [2, 1] >>> a <= b True >>> a = [2, 1] >>> b = [1, 2] >>> a <= b False See https://docs.python.org/3/tutorial/datastructures.html#comparing-sequences-and-other-types

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Justin Mayfield
Justin Mayfield added the comment: I should have commented more on the run_once removal. The depiction given in its docstring seemed inconsistent with the new way stop works and I found no callers, so it seemed like it was best left out to avoid confusion. No worries though, I didn't get to

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Justin Mayfield
Justin Mayfield added the comment: Ha, email race. Regarding rev 2, the updated docstring and scheduled stop looks good along with alleviating the confusion I mentioned. I'm not sure about your warning comment; Perhaps that's a patch I didn't lay eyes on. Cheers. --

[issue25672] Unconditionally set SSL_MODE_RELEASE_BUFFERS

2015-11-19 Thread Cory Benfield
New submission from Cory Benfield: Originally raised by Ben Bangert on the python-dev mailing list. It turns out that OpenSSL has a mode setting, SSL_MODE_RELEASE_BUFFERS, that can be set by a call to SSK_CTX_set_mode. This mode can potentially reduce connection overhead by nearly 18kB *per

Re: What is a function parameter =[] for?

2015-11-19 Thread Ian Kelly
On Thu, Nov 19, 2015 at 11:26 AM, Mark Lawrence wrote: > To summarize, it once again shows that you haven't got the faintest idea > what you're talking about. You're now in a very exclusive club with the RUE > and Nick the Greek, the world's leading webmaster. Eh.

Re: What is a function parameter =[] for?

2015-11-19 Thread Ian Kelly
On Thu, Nov 19, 2015 at 12:19 PM, Chris Angelico wrote: > But you're > saying that it "simply substitute[s] the expression", which would mean > that "func()" is exactly the same as "func(y)". A function default > argument is therefore able to STEAL STUFF FROM THE CALLER'S SCOPE.

[issue25533] Make pkgutil.iter_modules() yield built-in modules

2015-11-19 Thread Brett Cannon
Brett Cannon added the comment: I say let it go and make sure the docs clearly document that only modules found off of sys.path are supported. Otherwise I would look at why walk_packages() and pydoc feel the need to import every module and if import simply needs to be tweaked to support this

Re: What is a function parameter =[] for?

2015-11-19 Thread Marko Rauhamaa
BartC : > Yes. In the languages I create, pretty much everything is mutable, > provided it can supply an l-value. Constructs such as those for empty > lists ([] in Python, () in mine) aren't l-values. > > But it doesn't apply default values. Python's default-value semantics is

Re: What is a function parameter =[] for?

2015-11-19 Thread BartC
On 19/11/2015 18:26, Mark Lawrence wrote: On 19/11/2015 18:19, BartC wrote: if you write A=B then something of B needs to have been copied into A, even if it's just the reference that B contains. Otherwise it would be difficult to get A to refer to the same object as B. Please, PLEASE, go

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Guido van Rossum
Guido van Rossum added the comment: OK, here's another revision of the patch, setting the timeout passed to the selector to 0 when the loop is pre-stopped. -- Added file: http://bugs.python.org/file41084/issue25593_revised_3.patch ___ Python tracker

[issue25660] tabs don't work correctly in python repl

2015-11-19 Thread Yury Selivanov
Yury Selivanov added the comment: Attached is a patch that uses different logic for tabulation. Instead of returning '\t' from the completion callback, it instead calls explicit readline API: "readline.insert_text('\t'); readline.redisplay()" Please review. -- keywords: +patch Added

failing to run python on my pc

2015-11-19 Thread Daniel Kasuza
Dear Sir/Madam I am student with University of the people and a beginner in programming. My problem is that l have down loaded python 2.7 but l am failing to muse it. If l try to to use it, I am getting an option which say run. If l press run, it just run and come back to the same option. I want

Re: How can I export data from a website and write the contents to a text file?

2015-11-19 Thread Patrick Hess
ryguy7272 wrote: > text_file = open("C:/Users/rshuell001/Desktop/excel/Text1.txt", "wb") > [...] > It doesn't seem like the '\n' is doing anything useful. All the text is > jumbled together. > [...] > I finally got it working. It's like this: > "\r\n" The better solution would be to open text

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Guido van Rossum
Guido van Rossum added the comment: OK, another revision, keep the mock selector. -- Added file: http://bugs.python.org/file41086/issue25593_revised_4.patch ___ Python tracker

Re: What is a function parameter =[] for?

2015-11-19 Thread BartC
On 19/11/2015 19:19, Chris Angelico wrote: On Fri, Nov 20, 2015 at 5:19 AM, BartC wrote: But every choice has consequences. Steven gave you a few examples of the consequences of late-binding default arguments. For example, can you translate this into (one of) your

[issue23788] test_urllib2_localnet.test_bad_address fails: OSError not raised by urlopen

2015-11-19 Thread Steve Harris
Steve Harris added the comment: I experienced the same problem on my system: OS: Xubuntu/Linux 12.04 $ uname -a Linux ives 3.2.0-94-generic #134-Ubuntu SMP Fri Nov 6 18:17:08 UTC 2015 i686 i686 i386 GNU/Linux $ gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-19 Thread Steven D'Aprano
On Fri, 20 Nov 2015 07:57 am, Marko Rauhamaa wrote: > Laura Creighton : > >> My experience says that the people who are confused want lists to >> behave like tuples. period. i.e. they don't want lists to be mutable. > > I think it's simpler than that. When you have: > >def

Re: What is a function parameter =[] for?

2015-11-19 Thread Ned Batchelder
On Thursday, November 19, 2015 at 7:28:44 PM UTC-5, Steven D'Aprano wrote: > On Fri, 20 Nov 2015 05:50 am, BartC wrote: > > > > I said that Python's "=" does a very shallow copy. And I stated that in > > A=B, something of B must be copied into A. > > > > I (and probably others) would like to

Re: What is a function parameter =[] for?

2015-11-19 Thread Steven D'Aprano
On Fri, 20 Nov 2015 04:30 am, BartC wrote: > On 19/11/2015 16:01, Steven D'Aprano wrote: [...] > The whole concept of 'mutable' default is alien to me. A default is just > a convenient device to avoid having to write: > >fn(0) or fn("") or fn([]) Says who? Here's another use for function

Re: Dabbling in web development

2015-11-19 Thread Dietmar Schwertberger
Am 19.11.2015 um 22:53 schrieb bSneddon: I know there are a plethora of web frameworks out there for Python and to be serious about website developement I should learn on like Django. Really thought, I just want to dabble and do some easy stuff. Does anyone have any suggestons? I have a

Re: What is a function parameter =[] for?

2015-11-19 Thread Ned Batchelder
On Thursday, November 19, 2015 at 7:11:52 PM UTC-5, BartC wrote: > On 19/11/2015 22:55, Michael Torrie wrote: > > On 11/19/2015 02:21 PM, BartC wrote: > >> (Python returns 42; so that means my languages are more dynamic than > >> Python? That's hard to believe!) > > > > It tells me your language

Re: What is a function parameter =[] for?

2015-11-19 Thread Steven D'Aprano
On Fri, 20 Nov 2015 05:50 am, BartC wrote: > I said that Python's "=" does a very shallow copy. And I stated that in > A=B, something of B must be copied into A. > > I (and probably others) would like to know why none of that is correct. > But I suspect I'm not wrong. Nothing of B is copied.

Re: What is a function parameter =[] for?

2015-11-19 Thread Ian Kelly
On Nov 19, 2015 5:31 PM, "Steven D'Aprano" wrote: > > [Aside: there is some ambiguity here. If I say "a reference to B", I > actually mean a reference to the object referenced to by B. I don't mean a > reference to the *name* B. Python doesn't support that feature: names are

Re: What is a function parameter =[] for?

2015-11-19 Thread BartC
On 19/11/2015 22:55, Michael Torrie wrote: On 11/19/2015 02:21 PM, BartC wrote: (Python returns 42; so that means my languages are more dynamic than Python? That's hard to believe!) It tells me your language does late binding for default arguments, which does mean the default argument can

Re: What is a function parameter =[] for?

2015-11-19 Thread Laura Creighton
In a message of Thu, 19 Nov 2015 16:36:17 -0800, Ned Batchelder writes: >On Thursday, November 19, 2015 at 7:28:44 PM UTC-5, Steven D'Aprano wrote: >> On Fri, 20 Nov 2015 05:50 am, BartC wrote: >> >> >> > I said that Python's "=" does a very shallow copy. And I stated that in >> > A=B, something

[issue9504] signal.signal/signal.alarm not working as expected

2015-11-19 Thread Martin Panter
Martin Panter added the comment: With Python’s current technique for signal handling, I think there is always going to be a window where a signal can arrive at the low level after checking the Python flag and before starting a blocking call. If you need to robustly handle a signal maybe it is

[issue25666] Python unexpectedly ignores a signal after fork

2015-11-19 Thread Martin Panter
Martin Panter added the comment: Here is a modified version of the script that is not a slow fork bomb. In the original, if time.sleep(600) fails to be interrupted, the children end up continuing the loop and forking more children. I tried Python 3.5, 2.7 and 3.4. I am seeing the signal

[issue9504] signal.signal/signal.alarm not working as expected

2015-11-19 Thread Martin Panter
Martin Panter added the comment: Sorry, EINTR changes were PEP 475. -- ___ Python tracker ___ ___

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue25670] ast.NodeTransformer: remove duplicate getattr()

2015-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM! -- assignee: -> haypo components: +Library (Lib) nosy: +serhiy.storchaka stage: -> commit review ___ Python tracker

pytest-2.8.3 released - bug fixes

2015-11-19 Thread Ronny
Hello Everyone, i'm pleased to announce the release of pytest-2.8.3: bug fixes === pytest is a mature Python testing tool with more than a 1100 tests against itself, passing on many different interpreters and platforms. This release is supposed to be drop-in compatible to

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-19 Thread Marko Rauhamaa
Laura Creighton : > My experience says that the people who are confused want lists to > behave like tuples. period. i.e. they don't want lists to be mutable. I think it's simpler than that. When you have: def f(x=[]): y = [] the first [] is evaluated when "def" is

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-11-19 Thread Yury Selivanov
Yury Selivanov added the comment: Please see my patch for Issue 25660 -- instead of returning '\t' from the completion function, I use readline API to modify the input buffer directly. -- ___ Python tracker

devpi-{server,web}-2.5.0 perf/bug fix releases

2015-11-19 Thread holger krekel
We just released devpi-{server,web}-2.5.0 to pypi, see changelogs below for more details. While it's not required to do an export/import cycle for this release it's recommended especially if you are running with replicas. Docs for the private pypi packaging server at: http://doc.devpi.net

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9b3144716d17 by Guido van Rossum in branch '3.4': Issue #25593: Change semantics of EventLoop.stop(). https://hg.python.org/cpython/rev/9b3144716d17 New changeset 158cc5701488 by Guido van Rossum in branch '3.5': Issue #25593: Change semantics of

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Guido van Rossum
Guido van Rossum added the comment: Hopefully this is it! -- assignee: -> gvanrossum resolution: later -> fixed status: open -> closed ___ Python tracker

[issue25672] set SSL_MODE_RELEASE_BUFFERS

2015-11-19 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou title: Unconditionally set SSL_MODE_RELEASE_BUFFERS -> set SSL_MODE_RELEASE_BUFFERS ___ Python tracker

[issue25672] Unconditionally set SSL_MODE_RELEASE_BUFFERS

2015-11-19 Thread Cory Benfield
Cory Benfield added the comment: Oh, one further requirement: we should *not* set this mode for OpenSSL releases 1.x through 1.0.1g, which have a NULL pointer dereference vulnerability (CVE 2014-0198). Thanks to Marc-Andre Lemburg for spotting this. See also:

Re: What is a function parameter =[] for?

2015-11-19 Thread BartC
On 19/11/2015 17:45, Chris Angelico wrote: On Fri, Nov 20, 2015 at 4:30 AM, BartC wrote: The whole concept of 'mutable' default is alien to me. A default is just a convenient device to avoid having to write: fn(0) or fn("") or fn([]) You just write fn() instead. But it

Re: What is a function parameter =[] for?

2015-11-19 Thread Mark Lawrence
On 19/11/2015 18:19, BartC wrote: On 19/11/2015 17:45, Chris Angelico wrote: On Fri, Nov 20, 2015 at 4:30 AM, BartC wrote: The whole concept of 'mutable' default is alien to me. A default is just a convenient device to avoid having to write: fn(0) or fn("") or fn([]) You

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Guido van Rossum
Guido van Rossum added the comment: New patch. Update test_utils.run_once() to use the recommended idiom. On second thought I don't like issuing a warning when stop() is called before the loop runs -- a warning seems overkill for something so minor. But I'm okay with no longer recommending

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Justin Mayfield
Justin Mayfield added the comment: I see. Seems like good discussion over there. I joined up. -- ___ Python tracker ___

Re: What is a function parameter =[] for?

2015-11-19 Thread Chris Angelico
On Fri, Nov 20, 2015 at 5:50 AM, BartC wrote: > But you're not going to tell me what it is I got wrong! > > I said that Python's "=" does a very shallow copy. And I stated that in A=B, > something of B must be copied into A. > > I (and probably others) would like to know why none

Re: What is a function parameter =[] for?

2015-11-19 Thread Chris Angelico
On Fri, Nov 20, 2015 at 5:19 AM, BartC wrote: > Yes. In the languages I create, pretty much everything is mutable, provided > it can supply an l-value. Constructs such as those for empty lists ([] in > Python, () in mine) aren't l-values. > > But it doesn't apply default values.

Re: Unsuccessful installation

2015-11-19 Thread Ian Kelly
On Thu, Nov 19, 2015 at 12:45 PM, Kaufman, Stan wrote: > Python would not run on this Windows XP computer. After four attempts at > "change/remove" it still gives the same message: > > [cid:image001.png@01D122D0.93CC3270] > > The first trip through "change/remove" appeared to

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Guido van Rossum
Guido van Rossum added the comment: Whoops. Hopefully this one's right. -- Added file: http://bugs.python.org/file41087/issue25593_revised_5.patch ___ Python tracker

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-19 Thread Laura Creighton
In a message of Fri, 20 Nov 2015 06:46:42 +1100, Chris Angelico writes: >Would this satisfy the people who get confused about "=[]"? > >ChrisA My experience says that the people who are confused want lists to behave like tuples. period. i.e. they don't want lists to be mutable. Which means

Unsuccessful installation

2015-11-19 Thread Kaufman, Stan
Python would not run on this Windows XP computer. After four attempts at "change/remove" it still gives the same message: [cid:image001.png@01D122D0.93CC3270] The first trip through "change/remove" appeared to be a further step in installation. The second through fourth trips indicated

[issue25656] multiprocessing.dummy: pool.map hangs on empty list

2015-11-19 Thread Tomer
Changes by Tomer : -- nosy: +jnoller, sbt ___ Python tracker ___ ___ Python-bugs-list

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-19 Thread Laura Creighton
In a message of Thu, 19 Nov 2015 22:57:10 +0200, Marko Rauhamaa writes: >Laura Creighton : > >> My experience says that the people who are confused want lists to >> behave like tuples. period. i.e. they don't want lists to be mutable. > >I think it's simpler than that. When you

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2015-11-19 Thread David Bolen
David Bolen added the comment: Ah, it appears that the transient_internet context manager in the test causes it to be skipped if the host is unknown. So mine was just "lucky" in that it fell back to connecting somewhere else. I've removed my resolver search path on bolen-ubuntu which will

[issue25676] Bug

2015-11-19 Thread Zachary Ware
Changes by Zachary Ware : Removed file: http://bugs.python.org/file41088/Garcinia Cambogia Free Trial UK.html ___ Python tracker ___

Re: Dabbling in web development

2015-11-19 Thread Laura Creighton
In a message of Fri, 20 Nov 2015 01:07:24 +0200, Marko Rauhamaa writes: >Laura Creighton : > >> There are lots of other choices than Django. >> >> see: https://wiki.python.org/moin/WebFrameworks/ > >However, are there any good web applications? I have seen some heroic >attempts

[issue25083] Python can sometimes create incorrect .pyc files

2015-11-19 Thread Brett Cannon
Brett Cannon added the comment: As I said previously, tzickel, this is an edge case in Python 2.7 which means it has a low priority for most core developers. Realize that we are also working towards a Python 3.5.1 release and a 3.4.4 release as well (which will be the first and last bugfix

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2015-11-19 Thread David Bolen
New submission from David Bolen: It appears that the test host (sha256.tbs-internet.com) used by test_algorithms in test_ssl.py no longer exists. It was showing up as a certificate failure in the test because it ended up falling back to a resolv.conf search path which yielded a host that did

Re: Dabbling in web development

2015-11-19 Thread Ian Kelly
On Thu, Nov 19, 2015 at 2:53 PM, bSneddon wrote: > I know there are a plethora of web frameworks out there for Python and to be > serious about website developement I should learn on like Django. Really > thought, I just want to dabble and do some easy stuff. Does

[issue18620] multiprocessing page leaves out important part of Pool example

2015-11-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___

Re: Dabbling in web development

2015-11-19 Thread Laura Creighton
In a message of Thu, 19 Nov 2015 13:53:09 -0800, bSneddon writes: >I know there are a plethora of web frameworks out there for Python and to be serious about website developement I should learn on like Django. Really thought, I just want to dabble and do some easy stuff. Does anyone have any

Re: Dabbling in web development

2015-11-19 Thread Laura Creighton
In a message of Fri, 20 Nov 2015 10:09:01 +1100, Chris Angelico writes: >On Fri, Nov 20, 2015 at 9:53 AM, Laura Creighton wrote: >> It is not the case that 'serious website developers use heavyweight >> systems like Django' --- lots and lots of serious developers use >> Flask or

Dabbling in web development

2015-11-19 Thread bSneddon
I know there are a plethora of web frameworks out there for Python and to be serious about website developement I should learn on like Django. Really thought, I just want to dabble and do some easy stuff. Does anyone have any suggestons? I have a a website hosted with a hosting company

[issue25675] doc for BaseEventLoop.run_in_executor() says its a coroutine, but it is not

2015-11-19 Thread Guido van Rossum
Changes by Guido van Rossum : -- keywords: +easy priority: normal -> low ___ Python tracker ___

[issue25675] doc for BaseEventLoop.run_in_executor() says its a coroutine, but it is not

2015-11-19 Thread Nicolas Demarchi
Changes by Nicolas Demarchi : -- nosy: +gilgamezh ___ Python tracker ___ ___

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?) (fwd)

2015-11-19 Thread Laura Creighton
Arrgh! I got Ned Batchelder's email wrong. Forgot the t. (for somebody whose irc nick is nedbat. ) sending this to him again. warning any repliers that the mail address is wrong apologies, Laura --- Forwarded Message From: Laura Creighton Subject: Re:

Re: Dabbling in web development

2015-11-19 Thread Marko Rauhamaa
Laura Creighton : > There are lots of other choices than Django. > > see: https://wiki.python.org/moin/WebFrameworks/ However, are there any good web applications? I have seen some heroic attempts but most fail miserably or at least have some annoying glitches. The cardinal

[issue25675] doc for BaseEventLoop.run_in_executor() says its a coroutine, but it is not

2015-11-19 Thread Ezequiel Alfie
New submission from Ezequiel Alfie: Doc says: coroutine BaseEventLoop.run_in_executor(executor, func, *args) .. This method is a coroutine. However, inspecting the code, I find that this function is not a coroutine. Also this function returns a Future instance, this fact should be

[issue25676] Spam

2015-11-19 Thread Zachary Ware
Changes by Zachary Ware : -- components: -Windows resolution: -> not a bug stage: -> resolved status: open -> closed title: Bug -> Spam type: enhancement -> versions: -Python 2.6 ___ Python tracker

  1   2   >