[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-10-29 Thread Mike Kaplinskiy
Mike Kaplinskiy added the comment: Hey Nick, Definitely agree that this refactor is big enough to try adding target modules. There's a somewhat hidden feature in the second patch that does this: `use_globals_from_sys_modules` takes `sys.globals` from the `sys.modules` entry for the module.

[issue26638] Avoid warnings about missing CLI options when building documentation

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 307d7568b6ae by Martin Panter in branch '3.5': Issue #26638: Mask undefined CLI options to defeat new Sphinx warnings https://hg.python.org/cpython/rev/307d7568b6ae New changeset 57f4ba6b29bf by Martin Panter in branch '3.5': Issue #26638: Work

[issue28532] Show sys.version when -V option is supplied twice.

2016-10-29 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, but in this case, just add -VV will add more details about the current revision. About -VVV or -VV, yes, it's similar because the same C code version >= 2, Py_GetVersion() -- ___ Python tracker

modifying images in a pdf file

2016-10-29 Thread Ethan Furman
I'd like to modify some images in pdf files -- specifically, extract the image, process it to give it a comic strip type of coloring (using pillow), and then put it back. I see there are several pdf libraries, but a cursory examination did not reveal which, if any, had a method for extraction

[issue28532] Show sys.version when -V option is supplied twice.

2016-10-29 Thread INADA Naoki
INADA Naoki added the comment: Since I'm not good English writer, I copied & modified from -v option. -VVV is same to -VV, similar to -vvv is same to -vv. -v : verbose (trace import statements); also PYTHONVERBOSE=x can be supplied multiple times to increase verbosity --

[issue28532] Show sys.version when -V option is supplied twice.

2016-10-29 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: " -V : print the Python version number and exit (also --version)\n\ + when given twice, print more information about build\n\ + can be supplied multiple times to show more information\n\" Why do you indicate "multiple times" because there

[issue28532] Show sys.version when -V option is supplied twice.

2016-10-29 Thread INADA Naoki
Changes by INADA Naoki : -- keywords: +easy stage: -> commit review ___ Python tracker ___

[issue11681] -b option undocumented

2016-10-29 Thread Martin Panter
Martin Panter added the comment: As well as the usage string, it is missing from the list of options in the main documentation at Doc/using/cmdline.rst. There are a couple of places (sys.rst and warnings.rst) that reference :option:`-b`, and newer versions of Sphinx complain about this.

Re: comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-29 Thread John Ladasky
Disha, Before you struggle to reinvent the wheel, you might want to check out the Biopython package. http://biopython.org/wiki/Biopython I haven't used it for a few years, but the version that I did use was very comprehensive. -- https://mail.python.org/mailman/listinfo/python-list

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: #17535 is about adding line numbers to IDLE editor. I have approved it in priciple, but not yet the proposed patch, or a revision thereof. -- ___ Python tracker

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Michael Torrie
On 10/29/2016 06:16 PM, BartC wrote: > An editor is either line-oriented or it isn't. Free-flowing English text > usually isn't, but most program code is. And a line-oriented editor > should have hard stops at the line ends. (IMO which apparently isn't > shared by anyone else on the planet.)

[issue18844] allow weights in random.choice

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09a87b16d5e5 by Raymond Hettinger in branch '3.6': Issue #18844: Strengthen tests to include a case with unequal weighting https://hg.python.org/cpython/rev/09a87b16d5e5 -- ___ Python tracker

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 23:21, Dennis Lee Bieber wrote: On Sat, 29 Oct 2016 22:11:31 +0100, BartC declaimed the following: (Non-line-oriented would mean it just keeps sitting there until it's read three values, damn it, no matter how many times you press Enter, and it's not going to

[issue18844] allow weights in random.choice

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32bfc8b6 by Raymond Hettinger in branch '3.6': Issue #18844: Make the various ways for specifing weights produce the same results. https://hg.python.org/cpython/rev/32bfc8b6 -- ___ Python

Re: comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-29 Thread MRAB
On 2016-10-29 20:38, dishaachary...@gmail.com wrote: Code: A = 0 B= 0 i=0 j=0 # opening the files infile1 = open("CDSsrebf1.txt") infile2 = open("PROsrebf1.txt") infile3 = open("mutant.txt") print(" 1st line of WT SREBF1 (CDS):",infile1.readline()) print ("1st line of mutant protein of SREBF1:

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread breamoreboy
On Tuesday, October 25, 2016 at 11:02:47 AM UTC+1, BartC wrote: > On 25/10/2016 07:39, Steven D'Aprano wrote: > > >> I gather that non-blocking keyboard input functions aren't the easiest > >> thing > >> to implement. They seem to depend on the operating system. Still, ease of > >> use is a

[issue28556] typing.py upgrades

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0201a87d773d by Guido van Rossum in branch '3.5': Issue #28556: updates to typing.py (add Coroutine, prohibit Generic[T]()) https://hg.python.org/cpython/rev/0201a87d773d New changeset 2c2fec17247d by Guido van Rossum in branch '3.6': Issue #28556:

[issue28560] Implement `PurePath.startswith` and `PurePath.endswith`

2016-10-29 Thread Ram Rachum
New submission from Ram Rachum: Today I had to check whether a path object started with `/foo`. The nicest way I could think of was `str(p).startswith('/foo')`. What do you think about implementing `p.startswith('/foo')`? -- components: Library (Lib) messages: 279699 nosy: cool-RR,

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 17:27, Dennis Lee Bieber wrote: On Sat, 29 Oct 2016 15:32:16 +0100, BartC declaimed the following: I still think a beginner would much prefer something along the lines of 'readln a,b,c' (and I still think that's more intuitive). Then I would suggest

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-10-29 Thread Eric Appelt
Eric Appelt added the comment: I also looked at hashes of strings themselves rather than frozensets to check the hashing of strings directly. For example, n=3: ['', 'a', 'b', 'c', 'ab', 'ac', 'bc', 'abc'] rather than: [frozenset(), frozenset({'a'}), frozenset({'b'}), frozenset({'c'}),

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-10-29 Thread Eric Appelt
Eric Appelt added the comment: I dug into this failure a little bit and verified that it is specifically the "letter_range" portion of the test that sporadically fails. The hash of any frozenset constructed from floats, ints, or the empty frozenset, as well as frozensets recursively

[issue28556] typing.py upgrades

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94010653379c by Guido van Rossum in branch '3.5': Issue #28556: updates to typing.py (fix copy, deepcopy, pickle) https://hg.python.org/cpython/rev/94010653379c New changeset 465b345559ea by Guido van Rossum in branch '3.6': Issue #28556: updates

comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-29 Thread dishaacharya96
Code: A = 0 B= 0 i=0 j=0 # opening the files infile1 = open("CDSsrebf1.txt") infile2 = open("PROsrebf1.txt") infile3 = open("mutant.txt") print(" 1st line of WT SREBF1 (CDS):",infile1.readline()) print ("1st line of mutant protein of SREBF1: ", infile3.readline()) print ("1st line of protein of

[issue28542] document cross compilation

2016-10-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: I have changed my Android build system to use DESTDIR, it is simpler than using 'mount --bind'. Thanks for the suggestion Martin. Here is a new patch adding some text for the Android cross compilation. -- Added file:

[issue28552] Distutils fail if sys.executable is None

2016-10-29 Thread Donald Stufft
Donald Stufft added the comment: We re-execute Python to run setup.py. Even from wheels we do it to compile pyc files. Sent from my iPhone > On Oct 29, 2016, at 2:38 PM, R. David Murray wrote: > > > R. David Murray added the comment: > > Yes, you are right; I was

[issue28556] typing.py upgrades

2016-10-29 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue28473] mailbox.MH crashes on certain Claws Mail .mh_sequences files

2016-10-29 Thread R. David Murray
R. David Murray added the comment: OK. There is definitely something that could be done here if someone wants to tackle it. At a minimum, read the lines that we can read and produce a warning of some sort for the ones we can't. If more than one other mh style programming is allowing this

[issue28552] Distutils fail if sys.executable is None

2016-10-29 Thread R. David Murray
R. David Murray added the comment: Yes, you are right; I was thinking that distutils and/or pip re-executed python for certain tasks, but upon reflection I don't think they do. -- stage: -> needs patch ___ Python tracker

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-29 Thread Big Stone
Big Stone added the comment: the "show line number on the left" feature is on the "github web editor", on "atom", and on "spyder" and "erik" python IDE, so rather the expected standard for python editing. -- ___ Python tracker

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-29 Thread Big Stone
Big Stone added the comment: thank you all for the patch IDLEX was a requirement for a french examination. I think the reason was to see the line numbers on the left of the editor. For sure since IDLEX birth, IDLE has made some progress and IDLEX is becoming irrelevant, but this lovely tiny

[issue28559] Unclear error message when raising wrong type of exceptions

2016-10-29 Thread Dimitri Merejkowsky
New submission from Dimitri Merejkowsky: Motivation for the patch came from a tweet[1] of David Beazley: def SomeError(Exception): pass raise SomeError('blah') (Note the `def` keyword instead of `class`): If you run that, you get: > TypeError: exceptions must derive from BaseException

[issue28554] Windows: _socket module fails to compile on "AMD64 Windows7 SP1 3.x" buildbot "because "AlwaysCreate" was specified"

2016-10-29 Thread Jeremy Kloth
Jeremy Kloth added the comment: Steve's guess wrt the _pth file being the cause was spot on. The buildbot is back on track with successful results. -- nosy: +jkloth ___ Python tracker

[issue28558] argparse Incorrect Handling of Store Actions

2016-10-29 Thread Xiang Zhang
Xiang Zhang added the comment: This is the expected behaviour. The doc explicitly says "Note that nargs=1 produces a list of one item. This is different from the default, in which the item is produced by itself". Read https://docs.python.org/3/library/argparse.html#nargs. -- nosy:

[issue28558] argparse Incorrect Handling of Store Actions

2016-10-29 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list

[issue28558] argparse Incorrect Handling of Store Actions

2016-10-29 Thread Chris
New submission from Chris: argparse does not handle Store actions correctly when "nargs = 1" is provided. The documentation indicates the value should be assigned to the dest, but instead a list with the value as the only item is assigned to dest. -- files: test_argparse.py messages:

[issue28557] error message for bad raw readinto

2016-10-29 Thread David Szotten
New submission from David Szotten: Was just tracking down a bug in eventlet, which manifested as "OSError: raw readinto() returned invalid length -1 (should have been between 0 and 8192)" I was misled for a while by the fact that readinto was in fact returning b'', not -1. This improves the

[issue28473] mailbox.MH crashes on certain Claws Mail .mh_sequences files

2016-10-29 Thread Garrett Nievin
Garrett Nievin added the comment: Interestingly, mailutils mh (GNU Mailutils 2.99.99, Ubuntu 16.10) doesn't have a problem with these files, so I'm using that instead of nmh. I assume this is relevant: http://www.nongnu.org/nmh/diff.html The limitation on the length of lines in the file

[issue28473] mailbox.MH crashes on certain Claws Mail .mh_sequences files

2016-10-29 Thread Garrett Nievin
Garrett Nievin added the comment: Yes, I couldn't access the mailbox at all. Here's what happens: $ cat mymail.py ; ./mymail.py #!/usr/bin/python3 import mailbox for message in mailbox.MH('~/mail/Personal'): print(message['subject']) Traceback (most recent call last): File

[issue28556] typing.py upgrades

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset a47b07d0aba0 by Guido van Rossum in branch '3.5': Issue #28556: updates to typing.py https://hg.python.org/cpython/rev/a47b07d0aba0 New changeset d2b5c3bfa2b5 by Guido van Rossum in branch '3.6': Issue #28556: updates to typing.py (3.5->3.6)

[issue28554] Windows: _socket module fails to compile on "AMD64 Windows7 SP1 3.x" buildbot "because "AlwaysCreate" was specified"

2016-10-29 Thread Steve Dower
Steve Dower added the comment: Forgot to include the issue number in the commit message, but 0c910ea1c968 has the test improvements (whether or not they'll help here remains to be seen... I added some extra cleanup to rt.bat that might help the buildbots recover if this was the issue).

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 15:53, Chris Angelico wrote: On Sun, Oct 30, 2016 at 1:32 AM, BartC wrote: BTW the functionality of my 'readln a,b,c' differs from the above. Separators can be anything reasonable. When eol is encountered, it will read zeros. And errors are not handled: any

[issue28556] typing.py upgrades

2016-10-29 Thread Guido van Rossum
New submission from Guido van Rossum: Over at https://github.com/python/typeshed we have a number of big changes in store. I'm eager to get these into 3.6, so I'm merging them in now, in time for 3.6b3. (Recall that PEP 484 and typing.py remain provisional until 3.7 rolls around.) --

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 16:24, Steve D'Aprano wrote: On Sun, 30 Oct 2016 01:32 am, BartC wrote: (BTW the functionality of my 'readln a,b,c' differs from the above. Separators can be anything reasonable. When eol is encountered, it will read zeros. And errors are not handled: any non-numeric will yield

[issue28554] Windows: _socket module fails to compile on "AMD64 Windows7 SP1 3.x" buildbot "because "AlwaysCreate" was specified"

2016-10-29 Thread Steve Dower
Steve Dower added the comment: I don't think the build failed, what's more likely is that my recent test_site additions (to test restricted sys.path) are not cleaning up correctly and that's leading to other issue. I've emailed Jeremy to check the buildbot, and I'm working on making those

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Christian Gollwitzer
Am 29.10.16 um 16:32 schrieb BartC: I still think a beginner would much prefer something along the lines of 'readln a,b,c' (and I still think that's more intuitive). (The first programming exercises I ever did involved typing in integers from the user, and sorting them or working out if they

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 15:19, Steve D'Aprano wrote: On Sat, 29 Oct 2016 10:53 pm, BartC wrote: But I'd like to see Python running on a 64KB system (Micropython doesn't count!). Hmmm. So tell me... how do you expect Python to run on tiny systems by *adding* new features? Regardless of how "small"

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Steve D'Aprano
On Sun, 30 Oct 2016 01:32 am, BartC wrote: > (BTW the functionality of my 'readln a,b,c' differs from the above. > Separators can be anything reasonable. When eol is encountered, it will > read zeros. And errors are not handled: any non-numeric will yield zero. Ah, in other words it is a toy,

Re: what does type(subprocess.Popen)== mean?

2016-10-29 Thread Steve D'Aprano
On Sun, 30 Oct 2016 01:55 am, oyster wrote: > why does not type(subprocess.Popen)==? Thanks Because Popen is not a module. Why do you expect it to be a module? py> type(int) py> type(float) py> type(str) py> class X(object): ... pass ... py> type(X) type(subprocess.Popen) >

EuroPython 2017 will be held in Rimini, Italy

2016-10-29 Thread M.-A. Lemburg
After carefully reviewing all proposals we had received and intense discussions with the teams, the EuroPython Society (EPS) is happy to announce the decision to accept the proposal from the Italian on-site team, backed by the Python Italia APS, to hold EuroPython 2017 in Rimini, Italy. The EPS

[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-29 Thread Yutao Yuan
Yutao Yuan added the comment: Yes, it works for me now. -- ___ Python tracker ___ ___ Python-bugs-list

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4b2679a06ace by Xavier de Gaye in branch '3.5': Issue #28444: Fix missing extensions modules when cross compiling. https://hg.python.org/cpython/rev/4b2679a06ace New changeset cddb7b2aba34 by Xavier de Gaye in branch '3.6': Issue #28444: Merge with

what does type(subprocess.Popen)== mean?

2016-10-29 Thread oyster
why does not type(subprocess.Popen)==? Thanks [quote] Python 3.4.4 |Anaconda 2.3.0 (64-bit)| (default, Feb 16 2016, 09:54:04) [MSC v.1 600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess >>> type(subprocess.Popen) >>> import

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Chris Angelico
On Sun, Oct 30, 2016 at 1:32 AM, BartC wrote: > BTW the functionality of my 'readln a,b,c' differs from the above. > Separators can be anything reasonable. When eol is encountered, it will read > zeros. And errors are not handled: any non-numeric will yield zero. People will

[issue26638] Avoid warnings about missing CLI options when building documentation

2016-10-29 Thread SilentGhost
SilentGhost added the comment: Patch (v3) is fine, except it no longer applies cleanly. I have a patch against the tip which I could upload if needed. I would also be in favour of disabling the unittest options directly, currently no link is generated and it doesn't seem like there is a

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 14:51, Dennis Lee Bieber wrote: On Sat, 29 Oct 2016 12:53:35 +0100, BartC declaimed the following: BTW what does reading three integers from the user look like in Python? On one line, or on three lines? (Python 2.7) ln = raw_input("Enter three

[issue28498] tk busy command

2016-10-29 Thread Miguel
Miguel added the comment: Why dont we do the job well from the beginning and refactor _configure() and adapt other dependent code? It's not so complicated to change the dependent code. Many people around the world use Tkinter. -- ___ Python tracker

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Steve D'Aprano
On Sat, 29 Oct 2016 10:53 pm, BartC wrote: > On 29/10/2016 02:04, Steve D'Aprano wrote: >> On Fri, 28 Oct 2016 05:09 am, BartC wrote: > >>> For years I've had discussions in comp.lang.c about things that C should >>> or should not have. > >> Bart, don't be naive. The C language isn't going to

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

2016-10-29 Thread Clément
Clément added the comment: Thanks Martin for the clarification! I'll leave it to you to decide whether there is something to fix here (I'll admit to not understanding much of that code). -- ___ Python tracker

[issue28548] http.server parse_request() bug and error reporting

2016-10-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 29, 2016, at 02:20 AM, Martin Panter wrote: >Here is a patch to parse the version from the request in more cases. Since it >is more of a cosmetic improvement for handling erroneous requests, I would >probably only apply it to the next Python version

[issue21590] Systemtap and DTrace support

2016-10-29 Thread SilentGhost
SilentGhost added the comment: Here is the patch that fixes warning in /Doc/howto/instrumentation.rst as well as cleans up a few nits here and there. I've removed attempt at highlighting using c since that doesn't work in practice. -- keywords: +patch nosy: +berker.peksag stage: ->

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 02:04, Steve D'Aprano wrote: On Fri, 28 Oct 2016 05:09 am, BartC wrote: For years I've had discussions in comp.lang.c about things that C should or should not have. Bart, don't be naive. The C language isn't going to "acquire a slick new enhancement" based on a few emails on

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-10-29 Thread Xiang Zhang
Xiang Zhang added the comment: > So I would prefer to remove it in the next version of Python, and not bother > fixing Xiang’s bug in existing versions. +1. In rfc7230, "The expectation to support HTTP/0.9 requests has been removed". -- ___ Python

[issue21590] Systemtap and DTrace support

2016-10-29 Thread SilentGhost
SilentGhost added the comment: Building the documentation on Ubuntu 16.10, I started getting the following warnings: /Doc/howto/instrumentation.rst:58: WARNING: Could not lex literal_block as "python3". Highlighting skipped. /Doc/howto/instrumentation.rst:139: WARNING: Could not lex

[issue28542] document cross compilation

2016-10-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch. -- Added file: http://bugs.python.org/file45263/readme_2.patch ___ Python tracker ___

[issue28542] document cross compilation

2016-10-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: > $(cd /path/to/source && pwd)/configure > Why do you use $(pwd) here? 'configure' fails with the following error message when used with '--prefix=../install': configure: error: expected an absolute directory name for --prefix: ../install So for

[issue28555] provid also sha-1 and sha-256 also on download links

2016-10-29 Thread Big Stone
Big Stone added the comment: oups ! i mean "ON several sites" -- versions: +Python 3.6 ___ Python tracker ___

[issue28555] provid also sha-1 and sha-256 also on download links

2016-10-29 Thread Big Stone
New submission from Big Stone: It would be nice to have also sha-1 and sha-256 provided with python-360b3 download links and annoucement (so no separate sites). md5 is dangerously easy to workaround nowodays -- messages: 279666 nosy: Big Stone priority: normal severity: normal status:

Re: distributed development methodology

2016-10-29 Thread Adam Jensen
On 10/29/2016 12:31 AM, Adam Jensen wrote: > On 10/28/2016 11:59 PM, Cameron Simpson wrote: >> Sync the virtualenv prerequisites file with your DVCS. Have a tiny >> script to update the local virtualenv prereq file and run its update >> command to honour any new prereqs. > > Cool. I didn't

[issue28552] Distutils fail if sys.executable is None

2016-10-29 Thread Alexander P
Alexander P added the comment: Well, project_base (which is what sys.executable is used for) is used only during build (i. e. python_build is True), if I understand it correctly. Normally, sys.prefix and sys.exec_prefix are used for all the paths. Also, project_base can be explicitly set

Re: Need help in python program

2016-10-29 Thread Veek M
id_1, clk, val = foo_function() id_2, key, units, delay = bar_function() if id_1 == id_2: print id_1, clk, val, key, units, delay -- https://mail.python.org/mailman/listinfo/python-list

Re: distributed development methodology

2016-10-29 Thread Paul Rubin
Adam Jensen writes: > So what are some of the more successful distributed. multi-platform, > development models? Use an orchestration program to keep the systems in sync: I use ansible (ansible.com) which is written in Python and fairly simple once you get used to it, but

[issue28199] Compact dict resizing is doing too much work

2016-10-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't have strong preferences, but at this moment dictresize4.patch looks a little better to me. Maybe I wrong and in future optimizations we will returned to insert_index(). Yet one opportunity for future optimization -- inline dk_get_index() and

[issue28199] Compact dict resizing is doing too much work

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b88dfc7b25d by Serhiy Storchaka in branch '3.6': Issue #28199: Microoptimized dict resizing. Based on patch by Naoki Inada. https://hg.python.org/cpython/rev/6b88dfc7b25d New changeset f0fbc6071d7e by Serhiy Storchaka in branch 'default': Issue

[issue4032] distutils doesn't search ".dll.a" as library on cygwin

2016-10-29 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: And updated patch for 2.7 -- Added file: http://bugs.python.org/file45262/2.7-unixccompiler-implib.patch ___ Python tracker

[issue4032] distutils doesn't search ".dll.a" as library on cygwin

2016-10-29 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Move version to 3.7 and 2.7, and I updated two patches adding import library type for file searching. Current Cygwin is used UnixCCompiler, and the compiler has be able to build extension module that doesn't need to library link at build time (e.g. array).

Re: distributed development methodology

2016-10-29 Thread Cameron Simpson
On 29Oct2016 00:11, Adam Jensen wrote: On 10/28/2016 11:59 PM, Cameron Simpson wrote: Sync the virtualenv prerequisites file with your DVCS. Have a tiny script to update the local virtualenv prereq file and run its update command to honour any new prereqs. Cool. I didn't

[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, sorry. libncursesw5-dev was not installed on my computer. Please try updated patch. -- Added file: http://bugs.python.org/file45260/curses_setcchar_2.patch ___ Python tracker

[issue28554] Windows: _socket module fails to compile on "AMD64 Windows7 SP1 3.x" buildbot "because "AlwaysCreate" was specified"

2016-10-29 Thread STINNER Victor
STINNER Victor added the comment: Interesting message: "because "AlwaysCreate" was specified". Extract of a failed build: Touching "C:\buildbot.python.org\3.x.kloth-win64\build\PCbuild\obj\\amd64_Debug\_sqlite3\_sqlite3.tlog\_sqlite3.lastbuildstate". 29>Done Building Project

[issue28554] Windows: _socket module fails to compile on "AMD64 Windows7 SP1 3.x" buildbot

2016-10-29 Thread STINNER Victor
New submission from STINNER Victor: It looks like the build 8776 was fine, but compilation of _socket started to fail near the build: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/8777 The related change 16ea07d420b864d786ef9c11a07967fe19c3a9cd seems unrelated.

[issue28544] Implement asyncio.Task in C

2016-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 950fbd75223b by Victor Stinner in branch '3.6': Issue #28544: Fix inefficient call to _PyObject_CallMethodId() https://hg.python.org/cpython/rev/950fbd75223b -- ___ Python tracker

[issue28128] Improve the warning message for invalid escape sequences

2016-10-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue28199] Compact dict resizing is doing too much work

2016-10-29 Thread INADA Naoki
INADA Naoki added the comment: Serhiy, would you commit it by 3.6b3? -- sent from mobile -- ___ Python tracker ___

Re: distributed development methodology

2016-10-29 Thread Chris Angelico
On Sat, Oct 29, 2016 at 2:59 PM, Cameron Simpson wrote: > On 28Oct2016 23:02, Adam Jensen wrote: >> >> If one were to develop a Python application on multiple machines, what >> are some good methods for keeping them synchronized? For example, I >> develop on a

Re: distributed development methodology

2016-10-29 Thread Adam Jensen
On 10/28/2016 11:59 PM, Cameron Simpson wrote: > Sync the virtualenv prerequisites file with your DVCS. Have a tiny > script to update the local virtualenv prereq file and run its update > command to honour any new prereqs. Cool. I didn't mention that I am a python n00b, did I? What/where is the

[issue28199] Compact dict resizing is doing too much work

2016-10-29 Thread Xiang Zhang
Xiang Zhang added the comment: If you inline insert_index, dictresize3 is not that bad. ./python3 -m perf timeit -s 'x = list(range(1000))' -- 'dict.fromkeys(x)' dictresize3: Median +- std dev: 43.9 us +- 0.7 us dictresize3(insert_index inlined): Median +- std dev: 41.6 us +- 0.6 us