Re: RE: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Bob Martin
in 770457 20170131 011814 "Joseph L. Casale" wrote: >> C# hardly seems any better than Java to me as far as a language goes. > >Which sounds pretty good to me, they are both high performance, mature >and rich languages. > >> Being forced into working with classes even

Re: Overriding True and False ?

2017-01-30 Thread Christian Gollwitzer
Am 31.01.17 um 04:27 schrieb Ian Kelly: On Jan 30, 2017 6:07 PM, "Steve D'Aprano" wrote: Hey Ian, Your news reader or mail client has stopped quoting the text you are quoting, so it appears as if you have written it. See:

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-01-30 Thread Maximilian Blochberger
New submission from Maximilian Blochberger: I have the following scenario: Client → Proxy → Target. The following two scenarios are working perfectly fine: 1) Establishing a TLS-secured connection to the proxy and then tunnel traffic through that connection to the target. This results in the

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
Meeran Rizvi wrote: > On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: >> Hello Guys, >> Here i am creating a GUI which will act as a search engine that will find >> the results from the browser and save the results as a xls file. When i >> typed something in my search box

[issue27200] make doctest in CPython has failures

2017-01-30 Thread Marco Buttu
Marco Buttu added the comment: Thanks Brett :-) Following the suggestion of Ezio to split the patch in more patches (msg284560), and according to msg284628, here is a first patch for just three files. To run their doctests: $ sphinx-build -b doctest . build/doctest \ library/configparser.rst

Re: Rename file without overwriting existing files

2017-01-30 Thread Jon Ribbens
On 2017-01-30, Jussi Piitulainen wrote: > It doesn't seem to be documented. I looked at help(os.link) on Python > 3.4 and the corresponding current library documentation on the web. I > saw no mention of what happens when dst exists already. > > Also, creating a

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2017-01-30 Thread Davin Potts
Davin Potts added the comment: Though this issue is specifically concerned with runpy APIs and their impact especially in running unittest test scripts, it's worth commenting here for people who need a workaround in the short term: code such as that shared in

Re: Rename file without overwriting existing files

2017-01-30 Thread Peter Otten
Jon Ribbens wrote: > On 2017-01-30, Peter Otten <__pete...@web.de> wrote: >> Jon Ribbens wrote: >>> A lot of the functions of the 'os' module do nothing but call the >>> underlying OS system call with the same name. It would not only be >>> redundant to copy the OS documentation into the Python

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
On Monday, January 30, 2017 at 8:26:07 PM UTC+5:30, Meeran Rizvi wrote: > On Monday, January 30, 2017 at 8:19:47 PM UTC+5:30, Peter Otten wrote: > > Meeran Rizvi wrote: > > > > > On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: > > >> Hello Guys, > > >> Here i am creating

Re: Rename file without overwriting existing files

2017-01-30 Thread Chris Angelico
On Tue, Jan 31, 2017 at 12:58 AM, Peter Otten <__pete...@web.de> wrote: >> I looked at help(os.link) on Python >> 3.4 and the corresponding current library documentation on the web. I >> saw no mention of what happens when dst exists already. >> >> Also, creating a hard link doesn't seem to work

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
On Monday, January 30, 2017 at 8:19:47 PM UTC+5:30, Peter Otten wrote: > Meeran Rizvi wrote: > > > On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: > >> Hello Guys, > >> Here i am creating a GUI which will act as a search engine that will find > >> the results from the

Re: Rename file without overwriting existing files

2017-01-30 Thread Terry Reedy
On 1/30/2017 8:58 AM, Peter Otten wrote: Jussi Piitulainen wrote: It doesn't seem to be documented. For functions with a C equivalent a look into the man page is usually helpful. Man pages do not exist on Windows. I suspect that there are more individual Python programs on Windows than

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: > Hello Guys, > Here i am creating a GUI which will act as a search engine that will find the > results from the browser and save the results as a xls file. > When i typed something in my search box and click the

RE: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Joseph L. Casale
> What do you mean by "both platforms"? Python scripts already run on > three major operating systems (Win/Lin/Mac) and a good number of > less-popular OSes; a well-written Python script will run in four major > Pythons (CPython, PyPy, Jython, IronPython) and a number of others; > and all manner

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
Peter Otten wrote: > PS: You can verify that you understood this by answering the question: > what happens if the user hits the go-button while the second thread is > still running. Hint: as written the script does not handle this correctly. On second thought it's probably not as bad as I

Re: Rename file without overwriting existing files

2017-01-30 Thread Peter Otten
Jussi Piitulainen wrote: > Peter Otten writes: > >> Steve D'Aprano wrote: >>> The wider context is that I'm taking from 1 to >>> path names to existing files as arguments, and for each path name I >>> transfer the file name part (but not the directory part) and then rename >>> the file. For

Re: Rename file without overwriting existing files

2017-01-30 Thread Jon Ribbens
On 2017-01-30, Peter Otten <__pete...@web.de> wrote: > Jon Ribbens wrote: >> A lot of the functions of the 'os' module do nothing but call the >> underlying OS system call with the same name. It would not only be >> redundant to copy the OS documentation into the Python documentation, >> it would

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: > Hello Guys, > Here i am creating a GUI which will act as a search engine that will find the > results from the browser and save the results as a xls file. > When i typed something in my search box and click the

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
Meeran Rizvi wrote: > On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: >> Hello Guys, >> Here i am creating a GUI which will act as a search engine that will find >> the results from the browser and save the results as a xls file. When i >> typed something in my search box

[issue29328] struct module should support variable-length strings

2017-01-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: -> needs patch ___ Python tracker ___ ___

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Michael Kesper
New submission from Michael Kesper: Please look at http://stackoverflow.com/questions/41932287/how-can-i-create-a-loop-for-these-if-statements/41932494?noredirect=1#41932494 For beginners, it would be good to introduce the concepts of 'pythonic' dealing with sequences (iterators) and

ANN: A new version (0.4.0) of python-gnupg has been released.

2017-01-30 Thread Vinay Sajip via Python-announce-list
A new version of the Python module which wraps GnuPG has been released. What Changed? = This is an enhancement and bug-fix release, and all users are encouraged to upgrade. See the project website [1] for more information. Brief summary: * Added support for ``KEY_CONSIDERED`` in

Python for .NET (pythonnet) v2.2.2 with Python 3.6 support

2017-01-30 Thread Denis Akhiyarov
Download from PYPI using pip or from Anaconda using conda: https://pypi.python.org/pypi/pythonnet/2.2.2 https://anaconda.org/pythonnet/pythonnet -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation:

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: What change do you have in mind for introducing these? As for my personal opinion, dunno about this. I understand your concerns but dropping more terminology to a new learner early on wouldn't be the best idea in my view. >From what I am aware,

[issue29247] Document return value of epoll.poll

2017-01-30 Thread Marco Buttu
Marco Buttu added the comment: The patch LGTM. There is just one typo, I think (see review). -- nosy: +marco.buttu ___ Python tracker ___

[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Added a comment too. Other than that and the comment by Marco it looks fine to me too. -- ___ Python tracker

Re: Rename file without overwriting existing files

2017-01-30 Thread Peter Otten
Jon Ribbens wrote: > On 2017-01-30, Jussi Piitulainen wrote: >> It doesn't seem to be documented. I looked at help(os.link) on Python >> 3.4 and the corresponding current library documentation on the web. I >> saw no mention of what happens when dst exists already.

Re: Rename file without overwriting existing files

2017-01-30 Thread Jussi Piitulainen
Peter Otten writes: > Jussi Piitulainen wrote: > >> Peter Otten writes: >> >>> Steve D'Aprano wrote: > The wider context is that I'm taking from 1 to path names to existing files as arguments, and for each path name I transfer the file name part (but not the directory part) and

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
hmmeeranrizv...@gmail.com wrote: > Hello Guys, > Here i am creating a GUI which will act as a search engine that will find > the results from the browser and save the results as a xls file. When i > typed something in my search box and click the (GO)button.It should > display search in

[issue29386] select.epoll.poll may behave differently if timeout = -1 vs timeout = None

2017-01-30 Thread Gabriel McManus
Gabriel McManus added the comment: As mentioned in [1], Illumos will be fixed to match Linux's behaviour, so this problem will go away. It may still be worth changing epoll to just send -1 though, in case this causes similar issues in other operating systems. [1]

[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-30 Thread Marco Buttu
Marco Buttu added the comment: The patch LGTM. I think there is just one type (see review). By the way, looking at the PEP 0263, the sentence "To define a source code encoding, a magic comment must be placed into the source files either as first or second line in the file" actually is not

Re: Rename file without overwriting existing files

2017-01-30 Thread Jussi Piitulainen
Peter Otten writes: > Steve D'Aprano wrote: > >> On Mon, 30 Jan 2017 03:33 pm, Cameron Simpson wrote: >> >>> On 30Jan2017 13:49, Steve D'Aprano wrote: This code contains a Time Of Check to Time Of Use bug: if os.path.exists(destination)

[issue29247] Document return value of epoll.poll

2017-01-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Nathaniel. I agree that the documentation could be improved. Here is a patch. I also moved the constant table to epoll.register() documentation (it's already done in https://docs.python.org/3.7/library/select.html#polling-objects) It

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: > Hello Guys, > Here i am creating a GUI which will act as a search engine that will find the > results from the browser and save the results as a xls file. > When i typed something in my search box and click the

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2017-01-30 Thread bli
bli added the comment: Just to report that this bug seems responsible for failures at cProfiling some code using multiprocessing: http://stackoverflow.com/q/41892297/1878788 http://stackoverflow.com/q/11512499/1878788 -- nosy: +bli ___ Python

Update to Python 3 Cheat Sheet

2017-01-30 Thread Laurent Pointal via Python-announce-list
Hi, I updated the cheat sheet on the aesthetic side. Parts bloc and their title are now more easily identified with colors (but its nice with B printing too). French and german versions have also been updated. See https://perso.limsi.fr/pointal/python:memento A+ L.Pointal. --

[issue29377] Add the 'wrapper_descriptor' type to the types module

2017-01-30 Thread Manuel Krebber
Manuel Krebber added the comment: Okay, I added MethodDescriptorType to the types module and updated the docs. Hope this is okay now. -- Added file: http://bugs.python.org/file46455/slot-wrapper-types.patch ___ Python tracker

[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2017-01-30 Thread Mark Dickinson
Mark Dickinson added the comment: rm-finite.patch LGTM. Once that's merged, let's close this issue as rejected. If decimal is ever added as a first-class type (literal support, fixed-width decimal128 or decimal64, etc.), we may want to reconsider, but that day is probably a long way off.

Re: Is shutil.get_terminal_size useless?

2017-01-30 Thread Paul Moore
On Monday, 30 January 2017 05:37:32 UTC, Steven D'Aprano wrote: > On Monday 30 January 2017 08:12, Serhiy Storchaka wrote: > > > On 28.01.17 10:03, Steve D'Aprano wrote: > >> Is shutil.get_terminal_size useless? When, if ever, should I use it in > >> preference to the os version? If the shutil

[issue29283] duplicate README in site-packages

2017-01-30 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29283] duplicate README in site-packages

2017-01-30 Thread Berker Peksag
Changes by Berker Peksag : -- components: -Installation ___ Python tracker ___ ___

ANN: numexpr 2.6.2 released!

2017-01-30 Thread Francesc Alted
= Announcing Numexpr 2.6.2 = What's new == This is a maintenance release that fixes several issues, with special emphasis in keeping compatibility with newer NumPy versions. Also, initial support for POWER processors is here.

Re: Rename file without overwriting existing files

2017-01-30 Thread Wolfgang Maier
On 01/30/2017 03:49 AM, Steve D'Aprano wrote: This code contains a Time Of Check to Time Of Use bug: if os.path.exists(destination) raise ValueError('destination already exists') os.rename(oldname, destination) In the microsecond between checking for the existence of the

[issue29389] math.isclose signature contains incorrect start parameter

2017-01-30 Thread Shmuel Amar
Shmuel Amar added the comment: ok thanks i think it can be closed -- ___ Python tracker ___ ___

Re: Rename file without overwriting existing files

2017-01-30 Thread Peter Otten
Steve D'Aprano wrote: > On Mon, 30 Jan 2017 03:33 pm, Cameron Simpson wrote: > >> On 30Jan2017 13:49, Steve D'Aprano wrote: >>>This code contains a Time Of Check to Time Of Use bug: >>> >>>if os.path.exists(destination) >>>raise ValueError('destination

[issue29389] math.isclose signature contains incorrect start parameter

2017-01-30 Thread Shmuel Amar
New submission from Shmuel Amar: documentation of math.isclose() signature on https://docs.python.org/3/library/math.html#math.isclose is as follows: math.isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0) the third star '*' argument is not allowed inside the function:

[issue29283] duplicate README in site-packages

2017-01-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 23fcc0e51510 by Berker Peksag in branch '3.6': Issue #29283: Delete accidentally added Lib/site-packages/README https://hg.python.org/cpython/rev/23fcc0e51510 New changeset 3d328ee18612 by Berker Peksag in branch 'default': Issue #29283: Merge from

[issue29389] math.isclose signature contains incorrect start parameter

2017-01-30 Thread Mark Dickinson
Mark Dickinson added the comment: I think you're misreading the signature. The '*' is not a parameter in its own right; it's a piece of syntax marking the end of the positional parameters. Everything following that can only be passed by keyword. See PEP 3102 for an explanation of the syntax.

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Typo, is *now* becoming :-) -- ___ Python tracker ___ ___

[issue29389] math.isclose signature contains incorrect start parameter

2017-01-30 Thread Shmuel Amar
Shmuel Amar added the comment: documentation of math.isclose() signature on https://docs.python.org/3/library/math.html#math.isclose is as follows: math.isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0) the third star '*' argument is not allowed inside the function:

Re: Rename file without overwriting existing files

2017-01-30 Thread Steve D'Aprano
On Mon, 30 Jan 2017 03:33 pm, Cameron Simpson wrote: > On 30Jan2017 13:49, Steve D'Aprano wrote: >>This code contains a Time Of Check to Time Of Use bug: >> >>if os.path.exists(destination) >>raise ValueError('destination already exists') >>

Re: Rename file without overwriting existing files

2017-01-30 Thread Jon Ribbens
On 2017-01-30, Peter Otten <__pete...@web.de> wrote: > Jon Ribbens wrote: >> On 2017-01-30, Peter Otten <__pete...@web.de> wrote: >>> However, the current Python version of link() is sufficiently different >>> from >>>, say, to warrant its own documentation. >>

Re: Rename file without overwriting existing files

2017-01-30 Thread Marko Rauhamaa
Grant Edwards : > IMO, beginners shouldn't be using the os module. Hard to know. Depends on what the beginner wants to accomplish. > I always found the first sentence to be a bit funny: > > This module provides a portable way of using operating system >

Re: Rename file without overwriting existing files

2017-01-30 Thread Grant Edwards
On 2017-01-30, Terry Reedy wrote: > On 1/30/2017 8:58 AM, Peter Otten wrote: >> Jussi Piitulainen wrote: > >>> It doesn't seem to be documented. >> >> For functions with a C equivalent a look into the man page is usually >> helpful. > > Man pages do not exist on Windows. I

Re: Overriding True and False ?

2017-01-30 Thread Ian Kelly
On Jan 30, 2017 2:00 AM, "Chris Angelico" wrote: (Interestingly, Ellipsis is not included in that.) Perhaps because it's rather unusual for a program to depend upon the value of Ellipsis. -- https://mail.python.org/mailman/listinfo/python-list

Re: Rename file without overwriting existing files

2017-01-30 Thread Grant Edwards
On 2017-01-30, Jussi Piitulainen wrote: > It doesn't seem to be documented. I looked at help(os.link) on Python > 3.4 and the corresponding current library documentation on the web. I > saw no mention of what happens when dst exists already. The functions in the

[issue4630] IDLE: add cursor noblink option

2017-01-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: SO request for same: https://stackoverflow.com/questions/41937748/stop-cursor-blinking-in-idle. -- assignee: -> terry.reedy versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker

Re: count points where is within the polygons using shapely and fiona

2017-01-30 Thread Xristos Xristoou
tell your proposal to count -- https://mail.python.org/mailman/listinfo/python-list

Re: Overriding True and False ?

2017-01-30 Thread Ian Kelly
On Jan 30, 2017 1:32 AM, "Irv Kalb" wrote: I teach intro to programming using Python. In my first assignment, students are asked to assign variables of different types and print out the values. One student (who really did not understand Booleans) turned in the following

[issue29391] Windows Defender finds trojan Spursint in Numpy for Py36 Win64

2017-01-30 Thread Eric V. Smith
Eric V. Smith added the comment: You should report this to the Numpy tracker. It's a third party package. -- nosy: +eric.smith ___ Python tracker ___

Re: Rename file without overwriting existing files

2017-01-30 Thread Peter Otten
Chris Angelico wrote: > On Tue, Jan 31, 2017 at 12:58 AM, Peter Otten <__pete...@web.de> wrote: >>> I looked at help(os.link) on Python >>> 3.4 and the corresponding current library documentation on the web. I >>> saw no mention of what happens when dst exists already. >>> >>> Also, creating a

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
Meeran Rizvi wrote: > I just want to save it as a xls file and also from xls file i need to get > the data and display in a text box. > > Or either i just display the output in my text widget and also save it as > an xls file What exactly you want to do is up to you; just try your hands at it

[issue29391] Windows Defender finds trojan Spursint in Numpy for Py36 Win64

2017-01-30 Thread Glenn Clark
New submission from Glenn Clark: Windows Defender trojan Spursint Numpy Python3.6 Python 3.4 Win64 -- components: Windows messages: 286492 nosy: Glenn Clark, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Windows Defender finds

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Frazer McLean
New submission from Frazer McLean: On 3.5.2 and 3.5.3, but not 3.4.3 or 2.7.10 (Windows 64-bit), the third line causes Python to crash with exit code 0xC417. import msvcrt fp = open('file.txt', 'w') msvcrt.locking(fp.fileno(), msvcrt.LK_NBLCK, -1) print('End') I came across this in the

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Juan C.
On Sun, Jan 29, 2017 at 1:06 AM, Juan C. wrote: > > As you guys might know, .NET Core is up and running, promising a > "cross-platform, unified, fast, lightweight, modern and open source > experience" (source: .NET Core official site). What do you guys think about >

What library/package to use for parsing XML?

2017-01-30 Thread Chris Green
I want to parse some XML data, it's the address book data from the linux program osmo. The file I want to parse is like this:- None Peter and Denise Smith 0 0 Some address AAA BBB

[issue29349] Update old Python 2 code in Docs/tools/extensions/patchlevel.py

2017-01-30 Thread Ned Deily
Ned Deily added the comment: The fix looks good and the dmg buildbots are happy again. Thanks, Martin and David. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue22594] Add a link to the regex module in re documentation

2017-01-30 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon nosy: +brett.cannon ___ Python tracker ___

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Irmen de Jong
On 30-1-2017 21:33, Joseph L. Casale wrote: >> Python still has my heart, but .NET Core tempts me. One great thing of >> coding in C# would be no GIL. > > Seriously, check out the benchmarks at https://github.com/aspnet/benchmarks. Results vary quite a bit there. For instance take the json

Re: What library/package to use for parsing XML?

2017-01-30 Thread Irmen de Jong
On 30-1-2017 18:58, Chris Green wrote: > I want to parse some XML data, it's the address book data from the > linux program osmo. The file I want to parse is like this:- > [snip] > > I basically want to be able to extract the data and output in other > formats - e.g. write to a Sqlite3

Re: What library/package to use for parsing XML?

2017-01-30 Thread Juan C.
On Mon, Jan 30, 2017 at 3:58 PM, Chris Green wrote: > I want to parse some XML data, it's the address book data from the > linux program osmo. The file I want to parse is like this:- Just like Irmen said, use the default xml.etree.ElementTree, it's amazing and very simple to use.

[issue29391] Windows Defender finds trojan Spursint in Numpy for Py36 Win64

2017-01-30 Thread Eryk Sun
Changes by Eryk Sun : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___

RE: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Joseph L. Casale
> Python still has my heart, but .NET Core tempts me. One great thing of > coding in C# would be no GIL. Seriously, check out the benchmarks at https://github.com/aspnet/benchmarks. I think aside from the obvious, you'll find the Razor engine and the overall library to be a pleasure to work

[issue29377] Add the 'wrapper_descriptor' type to the types module

2017-01-30 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Thank you! The new patch LGTM. (I combined two diffs in your patch into one so that it could be understood by Rietveld). Guido, Yury, could one of you please take a look at this? -- nosy: +yselivanov Added file:

[issue2771] Test issue

2017-01-30 Thread Ezio Melotti
Ezio Melotti added the comment: test -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28231] zipfile does not support pathlib

2017-01-30 Thread Steve Dower
Steve Dower added the comment: Speaking as a "regular user" who just ran into this, my main concern is that PathLike paths get used properly. For filenames being passed back out, if I really want them to be Path objects, I'll wrap them in Path() anyway. Please don't let a full conversion to

[issue29389] math.isclose signature contains incorrect start parameter

2017-01-30 Thread Ammar Askar
Changes by Ammar Askar : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Frazer McLean
Frazer McLean added the comment: I ran it on AppVeyor to double check, the crash appears from 3.5 onwards as I saw on my computer. https://ci.appveyor.com/project/RazerM/issue29392/build/3 -- ___ Python tracker

Re: What library/package to use for parsing XML?

2017-01-30 Thread Rob Gaddi
On 01/30/2017 02:14 PM, Juan C. wrote: On Mon, Jan 30, 2017 at 3:58 PM, Chris Green wrote: I want to parse some XML data, it's the address book data from the linux program osmo. The file I want to parse is like this:- Just like Irmen said, use the default

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Eryk Sun
Eryk Sun added the comment: The old CRT doesn't do any parameter validation on the nbytes parameter. It just passes it directly to Windows LockFile as follows: LockFile((HANDLE)_get_osfhandle(fh), lockoffset, 0L, nbytes, 0L) which is locking (DWORD)-1 bytes, i.e. 0x. This allows

Re: Overriding True and False ?

2017-01-30 Thread Steve D'Aprano
On Tue, 31 Jan 2017 03:12 am, Ian Kelly wrote: > On Jan 30, 2017 1:32 AM, "Irv Kalb" wrote: > > I teach intro to programming using Python. In my first assignment, > students are asked to assign variables of different types and print out > the values. [...] Hey Ian, Your

How to write libreoffice python macros in venv?

2017-01-30 Thread Jim
I have all the necessary libreoffice modules installed in my Mint 18.1 system to allow me to write libreoffice calc macros in python. I now have venv installed. If I try to import uno for a calc macro in it I get an error that there is no uno module. How can I get my venv to find uno and the

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> needs patch versions: +Python 3.6, Python 3.7 ___ Python tracker ___

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Michael Torrie
On 01/30/2017 11:44 AM, Juan C. wrote: > On Sun, Jan 29, 2017 at 1:06 AM, Juan C. wrote: >> >> As you guys might know, .NET Core is up and running, promising a >> "cross-platform, unified, fast, lightweight, modern and open source >> experience" (source: .NET Core

What are your opinions on .NET Core vs Python?

2017-01-30 Thread Gerald Britton
On Sun, Jan 29, 2017 at 1:06 AM, Juan C. https://mail.python.org/mailman/listinfo/python-list>> wrote: > > > > >* As you guys might know, .NET Core is up and running, promising a > >"cross-platform, unified, fast, lightweight, modern and open source > >experience" (source: .NET Core official

Re: Rename file without overwriting existing files

2017-01-30 Thread Ben Finney
Peter Otten <__pete...@web.de> writes: > http://stackoverflow.com/questions/3222341/how-to-rename-without-race-conditions > > and from a quick test it appears to work on Linux: By “works on Linux”, I assume you mean “works on filesystems that use inodes and hard links”. That is not true for all

RE: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Joseph L. Casale
> C# hardly seems any better than Java to me as far as a language goes. Which sounds pretty good to me, they are both high performance, mature and rich languages. > Being forced into working with classes even when they are not > appropriate is jarring. And 100% irrelevant, it doesn't prevent

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2017-01-30 Thread INADA Naoki
INADA Naoki added the comment: @haypo, how do you think about ast.Lit and ast.Constant? Is this patch updated to use ast.Constant? Or ast.Constant should be used only for some transform like constant folding? -- versions: +Python 3.7 -Python 3.6 ___

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Michael Torrie
On 01/30/2017 06:18 PM, Joseph L. Casale wrote: > Which sounds pretty good to me, they are both high performance, mature > and rich languages. Sure it's a matter of personal preference and need. I happen to find the expressivity and flexibility of Python (warts and all) to be rather liberating

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Chris Angelico
On Tue, Jan 31, 2017 at 12:57 PM, Michael Torrie wrote: >> Sorry, sounds like you need to learn SOLID, none of my classes >> have ever taken this form. > > Never said they were my classes, or even my programs. What is this > "SOLID" thing?

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Michael Torrie
On 01/30/2017 06:52 PM, Nathan Ernst wrote: > self vs this, and you might start a language holy war. Actually no, you misread his point. He was speaking of C#, not Python. In C#, the only word you can use is "this." He was saying that you can use the explicit self paradigm in C#. Simply prefix

[issue28164] _PyIO_get_console_type fails for various paths

2017-01-30 Thread Eryk Sun
Eryk Sun added the comment: I had reopened this issue with a suggestion for expanding the supported paths in msg276864, but it's languished for a while now. I've attached a patch implementing the change to _PyIO_get_console_type that I had suggested. Here are some example paths that this

[issue27200] make doctest in CPython has failures

2017-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mariatta, would you please add your review comments to the proposed patches. For the most part, we want the patches to make the minimal changes necessary to pass the doctests. Also, clarity of the examples is more important than making the examples

[issue27200] make doctest in CPython has failures

2017-01-30 Thread Zachary Ware
Zachary Ware added the comment: Raymond Hettinger wrote: > Similarly, make sure that clarity and cut-and-pastability don't get lost by > adding ... PS2 prompts that uglify the examples. Note that Sphinx adds a ">>>" button to the upper right of the example that, when clicked, makes all of the

[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks all for the feedback. I updated the patch. Marco, IMO it's not necessary to update the PEP. This section of the documentation serves as a tutorial for it, and the update in this patch clarifies the situation. -- Added file:

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Nathan Ernst
I mostly agree with this On Mon, Jan 30, 2017 at 7:18 PM, Joseph L. Casale wrote: > > C# hardly seems any better than Java to me as far as a language goes. > > Which sounds pretty good to me, they are both high performance, mature > and rich languages. > > > Being

[issue29393] Enabiling IPv6 by default

2017-01-30 Thread Cooper Lees
New submission from Cooper Lees: Can we discuss the possibility of enabling IPv6 by default now during build. I think enough of the world now NEED IPv6 so people should all be building their Python with it. -- components: Build messages: 286506 nosy: cooperlees priority: normal

[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: It looks like everyone is happy and the patch is ready for Mariatta to apply. The procedure is: $ hg pull -u $ hg diff # Verify it has only your intended patch $ hg update 3.6 $ cd Doc $ make html $ open build/html/index.html #

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-01-30 Thread Eric Lafontaine
Eric Lafontaine added the comment: Resent-heuristic -- Added file: http://bugs.python.org/file46460/Resent_heuristic.patch ___ Python tracker ___

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-01-30 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, Here you go :). Regards, Eric Lafontaine -- Added file: http://bugs.python.org/file46459/issue28879_v5.patch ___ Python tracker

  1   2   >