Python3 http.server.SimpleHTTPRequestHandler static files

2016-03-02 Thread Tal Bar-Or
Hello All, I need to create simple web server i am using following http.server.SimpleHTTPRequestHandler The class along with the web content is as follows structure main folder | |_httplocal https://mail.python.org/mailman/listinfo/python-list

Re: Everything good about Python except GUI IDE?

2016-03-02 Thread Mike S via Python-list
On 2/27/2016 10:13 AM, wrong.addres...@gmail.com wrote: On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote: On 27.02.2016 12:18, wrong.addres...@gmail.com wrote: Isn't there any good GUI IDE like Visual Basic? I hope there are some less well known GUI IDEs which I did

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-02 Thread Anders Wegge Keller
On Mon, 29 Feb 2016 23:29:43 + Mark Lawrence wrote: > On 29/02/2016 22:40, Larry Martell wrote: >> I think for the most part, the mental health industry is most >> interested in pushing drugs and forcing people into some status quo. > I am disgusted by your

[issue23041] csv needs more quoting rules

2016-03-02 Thread Berker Peksag
Berker Peksag added the comment: I was thinking adding a more flexible API like: ... spamwriter = csv.writer(csvfile, quoting_callable=lambda field: field is not None) ... But that would require too much change in the csv module (or at least its implementation wouldn't be

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-02 Thread Ian Kelly
On Mar 2, 2016 9:01 PM, "Rustom Mody" wrote: > > On Thursday, March 3, 2016 at 7:59:13 AM UTC+5:30, Steven D'Aprano wrote: > > On Thu, 3 Mar 2016 04:02 am, Rustom Mody wrote: > > > > > And how is [1]'s starting different from Kenneth's finding his weight > > > to be the

Re: Inception

2016-03-02 Thread Paul Rubin
Ben Finney writes: > I'm familiar with that document. It doesn't help me understand what you > mean by “embed CPython in CPython”. It seems straightforward enough to me. Lots of Python programs load C extensions. Denis is asking whether one of those C extensions

Re: Inception

2016-03-02 Thread Rustom Mody
On Thursday, March 3, 2016 at 11:13:58 AM UTC+5:30, Denis Akhiyarov wrote: > Embed using C-API from ctypes, cffi or cython, but not using subprocesses. > Thanks for asking! > > Here is link to official documentation about embedding: > > https://docs.python.org/3.6/extending/index.html

Re: Inception

2016-03-02 Thread Ben Finney
Denis Akhiyarov writes: > Embed using C-API from ctypes, cffi or cython, but not using > subprocesses. Thanks for asking! I'm glad you appreciate my asking, but I am no closer to an answer. What would meet your requirements, what would be a “yes” for you? > Here is

Re: Inception

2016-03-02 Thread Denis Akhiyarov
Embed using C-API from ctypes, cffi or cython, but not using subprocesses. Thanks for asking! Here is link to official documentation about embedding: https://docs.python.org/3.6/extending/index.html -- https://mail.python.org/mailman/listinfo/python-list

Re: Inception

2016-03-02 Thread Ben Finney
Ben Finney writes: > Denis Akhiyarov writes: > > > Is it possible to embed CPython in CPython, e.g. using ctypes, cffi, > > or cython? > > I don't know what you mean by “embed” in this context. What would > qualify as “yes” for you? Here

[issue23041] csv needs more quoting rules

2016-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The csv module is already type-sensitive (with QUOTE_NONNUMERIC). I agree, that we shouldn't modify the csv module just for one user and one program. If a standard CVS library in Java (or other popular laguages) differentiates between empty string and null

Re: Inception

2016-03-02 Thread Ben Finney
Denis Akhiyarov writes: > Is it possible to embed CPython in CPython, e.g. using ctypes, cffi, > or cython? I don't know what you mean by “embed” in this context. What would qualify as “yes” for you? -- \“You don't change the world by placidly finding your

Inception

2016-03-02 Thread Denis Akhiyarov
Is it possible to embed CPython in CPython, e.g. using ctypes, cffi, or cython? -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct IDLE usage (was Reason for not allowing import twice but allowing reload())

2016-03-02 Thread Rustom Mody
On Thursday, March 3, 2016 at 9:38:11 AM UTC+5:30, Rustom Mody wrote: > On Thursday, March 3, 2016 at 8:11:20 AM UTC+5:30, Terry Reedy wrote: > > On 3/2/2016 10:22 AM, Rustom Mody wrote: > > > On Tuesday, March 1, 2016 at 12:23:02 PM UTC+5:30, Terry Reedy wrote: > > >> On 2/29/2016 7:42 AM, Rustom

Re: Correct IDLE usage (was Reason for not allowing import twice but allowing reload())

2016-03-02 Thread Rustom Mody
On Thursday, March 3, 2016 at 8:11:20 AM UTC+5:30, Terry Reedy wrote: > On 3/2/2016 10:22 AM, Rustom Mody wrote: > > On Tuesday, March 1, 2016 at 12:23:02 PM UTC+5:30, Terry Reedy wrote: > >> On 2/29/2016 7:42 AM, Rustom Mody wrote: > >> > >>> Is import needed at all when trying out in Idle? > >>

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-02 Thread Rustom Mody
On Thursday, March 3, 2016 at 7:59:13 AM UTC+5:30, Steven D'Aprano wrote: > On Thu, 3 Mar 2016 04:02 am, Rustom Mody wrote: > > > And how is [1]'s starting different from Kenneth's finding his weight > > to be the weight of the universe? > > Is that a trick question? > > "How is a raven like a

Re: Continuing indentation

2016-03-02 Thread Tim Chase
On 2016-03-03 08:29, Ben Finney wrote: > Skip Montanaro writes: >> Running flake8 over some code which has if statements with >> multiple conditions like this: >> >> if (some_condition and >> some_other_condition and >> some_final_condition): >>

Re: Continuing indentation

2016-03-02 Thread Ethan Furman
On 03/02/2016 06:33 PM, Chris Angelico wrote: It's not just name collisions. You should be able to keep in your head every local name in a section of code. Giving a name to a single-use expression wastes one of those precious slots in your mind, even if it's easily and safely unique. If it's

Re: Correct IDLE usage (was Reason for not allowing import twice but allowing reload())

2016-03-02 Thread Terry Reedy
On 3/2/2016 10:22 AM, Rustom Mody wrote: On Tuesday, March 1, 2016 at 12:23:02 PM UTC+5:30, Terry Reedy wrote: On 2/29/2016 7:42 AM, Rustom Mody wrote: Is import needed at all when trying out in Idle? ... So it does appear that 1. import not necessary with(in) idle 2. However import and f5

Re: How to know if an object is still be referenced?

2016-03-02 Thread jfong
sohca...@gmail.com at 2016/3/3 UTC+8 7:38:45AM wrote: > "label" might be a local variable, but it's constructor includes a reference > to the frame in which it is going. The frame object will create a reference > to the newly-created Label object. At that point, there will be two >

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 1:27 PM, Steven D'Aprano wrote: > We can be absolutely certain that Kenneth weighs less than the entire > universe. We don't even need a set of scales. Formal proof: 1) No physical object can have negative mass. 2) I am a part of the universe and have

Re: Continuing indentation

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 1:30 PM, Ben Finney wrote: > If your functions are so long that you fear using a specific name will > deter you from using it again *in the same scope*, then the name isn't > descriptive and a better one should be chosen, or the function is too >

Re: Continuing indentation

2016-03-02 Thread Ben Finney
Steven D'Aprano writes: > If you only use "continue_playing" in exactly one place, then it > doesn't deserve a name. I disagree. If it's complex, then it may still deserve a name. > > Names are important! > > Too important to waste on every single-use expression. To waste

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-02 Thread Steven D'Aprano
On Thu, 3 Mar 2016 04:02 am, Rustom Mody wrote: > And how is [1]'s starting different from Kenneth's finding his weight > to be the weight of the universe? Is that a trick question? "How is a raven like a writing desk?" "Neither of them are made of cheese cake." We can be absolutely certain

Re: Continuing indentation

2016-03-02 Thread Steven D'Aprano
On Thu, 3 Mar 2016 11:02 am, Carl Meyer wrote: > On 03/02/2016 04:54 PM, Chris Angelico wrote: >> On Thu, Mar 3, 2016 at 10:46 AM, wrote: >>> On Wednesday, March 2, 2016 at 3:44:07 PM UTC-5, Skip Montanaro wrote: if (some_condition and

Re: Continuing indentation

2016-03-02 Thread Steven D'Aprano
On Thu, 3 Mar 2016 09:10 am, Marko Rauhamaa wrote: > Ethan Furman : > >> No, it isn't. Using '\' for line continuation is strongly discouraged. > > Why would you discourage valid syntax? Because it is error-prone and ugly. This is valid syntax too. Do you write your code

Re: Explaining names vs variables in Python

2016-03-02 Thread Steven D'Aprano
On Thu, 3 Mar 2016 08:49 am, Mark Lawrence wrote: > On 02/03/2016 17:23, Steven D'Aprano wrote: >> On Thu, 3 Mar 2016 01:11 am, Marko Rauhamaa wrote: >> >>> What is missing is the rules that are obeyed by the "is" operator. >> >> I think what is actually missing is some common bloody sense. The

Re: Explaining names vs variables in Python

2016-03-02 Thread Steven D'Aprano
On Thu, 3 Mar 2016 05:12 am, Marko Rauhamaa wrote: > Steven D'Aprano : > >> In this case, "same object" carries the normal English meaning of >> "same" and the normal computer science meaning of "object" in the >> sense of "Object Oriented Programming". There's no mystery

[issue15795] Zipfile.extractall does not preserve file permissions

2016-03-02 Thread Mark Mikofski
Mark Mikofski added the comment: same problem in 2.7.5 on Oracle Linux 7.2 -- nosy: +bwanamarko ___ Python tracker ___

Re: Explaining names vs variables in Python

2016-03-02 Thread Rustom Mody
On Thursday, March 3, 2016 at 3:22:42 AM UTC+5:30, Chris Angelico wrote: > On Thu, Mar 3, 2016 at 8:49 AM, Mark Lawrence wrote: > > Are we discussing UK (highly generalised), Geordie, Glaswegian, US, > > Canadian, South African, Australian, New Zealand, or some other form of > > English? > > Is

Re: Continuing indentation

2016-03-02 Thread Ben Finney
(Igor, your “From” field doesn't contain a name for you. Can you put your name, e.g. “Igor Whateverisyoursurname”, in the “From” field?) codewiz...@gmail.com writes: > How about: > > continue_playing = ( > some_condition and > some_other_condition and > some_final_condition >

Re: Continuing indentation

2016-03-02 Thread Pete Forman
Chris Angelico writes: > On Thu, Mar 3, 2016 at 10:46 AM, wrote: >> On Wednesday, March 2, 2016 at 3:44:07 PM UTC-5, Skip Montanaro wrote: >>> >>> if (some_condition and >>> some_other_condition and >>> some_final_condition): >>>

Re: Continuing indentation

2016-03-02 Thread Carl Meyer
On 03/02/2016 04:54 PM, Chris Angelico wrote: > On Thu, Mar 3, 2016 at 10:46 AM, wrote: >> On Wednesday, March 2, 2016 at 3:44:07 PM UTC-5, Skip Montanaro wrote: >>> >>> if (some_condition and >>> some_other_condition and >>> some_final_condition): >>>

[issue25144] 3.5 Win install fails with "TARGETDIR"

2016-03-02 Thread Claude Chouinard
Claude Chouinard added the comment: To solve the problem with the variable TARGETDIR not being initialized, I called the installation program from the command shell and added the target dir option. c:\Users\\Downloads>python-3.5.1-amd64.exe TargetDir=c:\Python35 I also us the custom

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Jakub Stasiak
Jakub Stasiak added the comment: Glad I could help, thanks for merging! -- ___ Python tracker ___ ___

Re: Continuing indentation

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 10:46 AM, wrote: > On Wednesday, March 2, 2016 at 3:44:07 PM UTC-5, Skip Montanaro wrote: >> >> if (some_condition and >> some_other_condition and >> some_final_condition): >> play_bingo() > > How about: > >

Re: Continuing indentation

2016-03-02 Thread codewizard
On Wednesday, March 2, 2016 at 3:44:07 PM UTC-5, Skip Montanaro wrote: > > if (some_condition and > some_other_condition and > some_final_condition): > play_bingo() How about: continue_playing = ( some_condition and some_other_condition and

Re: Continuing indentation

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 9:10 AM, Marko Rauhamaa wrote: > Ethan Furman : > >> No, it isn't. Using '\' for line continuation is strongly discouraged. > > Why would you discourage valid syntax? > Isn't that exactly the point of style guides? They

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-02 Thread Eric Fahlgren
Eric Fahlgren added the comment: Barun, take a look at the latest version of the testfindlabels.py, see what you think. If it works for you, maybe move the test function into Lib/test/test_dis.py as part of the standard dis module tests. Still need to look at the code that's being tested

Re: How to know if an object is still be referenced?

2016-03-02 Thread sohcahtoa82
On Wednesday, March 2, 2016 at 3:35:32 AM UTC-8, jf...@ms4.hinet.net wrote: > Terry Reedy at 2016/3/2 UTC+8 3:04:10PM wrote: > > On 3/1/2016 9:35 PM, jf...@ms4.hinet.net wrote: > > > Recently I was puzzled by a tkinter problem. The codes below (from a > > > book) can display the picture

tkFileDialog Question

2016-03-02 Thread Wildman via Python-list
Is there a way to prevent the dialog from displaying hidden directories? My research has not found anything relating to hidden files or directories. -- GNU/Linux user #557453 "Philosophy is common sense with big words." -James Madison -- https://mail.python.org/mailman/listinfo/python-list

[issue23041] csv needs more quoting rules

2016-03-02 Thread Skip Montanaro
Skip Montanaro added the comment: Thanks for the update berker.peksag. I'm still not convinced that the csv module should be modified just so one user (sorry samwyse) can match the input format of someone's Java program. It seems a bit like trying to make the csv module type-sensitive. What

Re: Continuing indentation

2016-03-02 Thread Ethan Furman
On 03/02/2016 02:44 PM, Skip Montanaro wrote: I don't know. Maybe I need to ask the flake8 author about his rationale for this message. It seems to me from my experience with the language that this particular message is going against pretty common practice. Does vim's Python mode exhibit

Re: Explaining names vs variables in Python

2016-03-02 Thread Mark Lawrence
On 02/03/2016 21:52, Chris Angelico wrote: On Thu, Mar 3, 2016 at 8:49 AM, Mark Lawrence wrote: Are we discussing UK (highly generalised), Geordie, Glaswegian, US, Canadian, South African, Australian, New Zealand, or some other form of English? Is there any

Re: Continuing indentation

2016-03-02 Thread Ethan Furman
On 03/02/2016 02:10 PM, Marko Rauhamaa wrote: Ethan Furman : No, it isn't. Using '\' for line continuation is strongly discouraged. Why would you discourage valid syntax? 1) It's ugly 2) Any non-newline whitespace after the '\' and you don't have line continuation

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-03-02 Thread Michael Felt
Michael Felt added the comment: Since you are looking, maybe look at whether it is also libreSSL compatible? -- nosy: +Michael.Felt ___ Python tracker

Re: Continuing indentation

2016-03-02 Thread Skip Montanaro
Thanks for the replies, folks. I'll provide a single response: 1. Using backslash to continue... When I first started using Python in the mid-90s I don't recall that parenthesized expressions could be continued across lines (at least, not in all contexts), so the backslash was required. I believe

Re: Everything good about Python except GUI IDE?

2016-03-02 Thread Marko Rauhamaa
Christian Gollwitzer : > Have a look at PowerShell. It's not Python, and it is from MS - but it > works along those lines, passing .NET objects through the pipe. Owing > to that, instead of $2=="something" in the awk progra, you can address > the field(attribute) $2 by the

Re: looking into python...

2016-03-02 Thread Ben Finney
crankypuss writes: > "Python code can be packaged into stand-alone executable programs for > some of the most popular operating systems, allowing the distribution of > Python-based software for use on those environments without requiring > the installation of a Python

Re: Continuing indentation

2016-03-02 Thread Marko Rauhamaa
Ethan Furman : > No, it isn't. Using '\' for line continuation is strongly discouraged. Why would you discourage valid syntax? Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Jon Ribbens
On 2016-03-02, Chris Angelico wrote: > On Thu, Mar 3, 2016 at 5:29 AM, Jon Ribbens > wrote: >> On 2016-03-02, Chris Angelico wrote: >>> You're no more vulnerable looking at one of those listings >>> than you would be going to a

[issue26474] ctypes: Memory leak at malloc_closure.c

2016-03-02 Thread STINNER Victor
STINNER Victor added the comment: > malloc_closere.c We are talking about Modules/_ctypes/malloc_closure.c. > The items are being allocated in the more_core method using VirtualAlloc / > mmap. However they never get released. The allocation is only done once. I'm not sure that it can be

Re: Everything good about Python except GUI IDE?

2016-03-02 Thread Christian Gollwitzer
Am 02.03.16 um 09:20 schrieb Marko Rauhamaa: Chris Angelico : On Wed, Mar 2, 2016 at 4:41 PM, Marko Rauhamaa wrote: I was talking about JSON for the standard I/O, not the command-line arguments, as in: ps -ef | awk '/httpd/ { print $2 }' where "ps

looking into python...

2016-03-02 Thread crankypuss
"Python code can be packaged into stand-alone executable programs for some of the most popular operating systems, allowing the distribution of Python-based software for use on those environments without requiring the installation of a Python interpreter." (wikipedia) How correct is that?

Re: Continuing indentation

2016-03-02 Thread Ethan Furman
On 03/02/2016 12:50 PM, Marko Rauhamaa wrote: Skip Montanaro queried: Running flake8 over some code which has if statements with multiple conditions like this: if (some_condition and some_other_condition and some_final_condition): play_bingo() [...] is there a

[issue26474] Memory leak at malloc_closure.c

2016-03-02 Thread John Snow
New submission from John Snow: malloc_closere.c holds a static list of items: free_list. The items are being allocated in the more_core method using VirtualAlloc / mmap. However they never get released. Here is the allocation code: #ifdef MS_WIN32 item = (ITEM *)VirtualAlloc(NULL,

Re: Explaining names vs variables in Python

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 8:49 AM, Mark Lawrence wrote: > Are we discussing UK (highly generalised), Geordie, Glaswegian, US, > Canadian, South African, Australian, New Zealand, or some other form of > English? Is there any disagreement among them about the word "same"?

Re: Explaining names vs variables in Python

2016-03-02 Thread Mark Lawrence
On 02/03/2016 17:23, Steven D'Aprano wrote: On Thu, 3 Mar 2016 01:11 am, Marko Rauhamaa wrote: What is missing is the rules that are obeyed by the "is" operator. I think what is actually missing is some common bloody sense. The Python docs are written in English, and don't define *hundreds*,

Re: Continuing indentation

2016-03-02 Thread Ben Finney
Skip Montanaro writes: > Running flake8 over some code which has if statements with multiple > conditions like this: > > if (some_condition and > some_other_condition and > some_final_condition): > play_bingo() > > the tool complains that the

Re: Continuing indentation

2016-03-02 Thread Peter Otten
Skip Montanaro wrote: > Running flake8 over some code which has if statements with multiple > conditions like this: > > if (some_condition and > some_other_condition and > some_final_condition): > play_bingo() > > the tool complains that the indentation of the

Re: Continuing indentation

2016-03-02 Thread Wolfgang Maier
On 3/2/2016 21:43, Skip Montanaro wrote: Running flake8 over some code which has if statements with multiple conditions like this: if (some_condition and some_other_condition and some_final_condition): play_bingo() the tool complains that the indentation of the

Re: Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 5:29 AM, Jon Ribbens wrote: > On 2016-03-02, Chris Angelico wrote: >> To be fair, this isn't a JS exploit; it's a trusting-of-trust issue - >> eBay has declared that you can trust them to sanitize their sellers' >> listings,

Re: Continuing indentation

2016-03-02 Thread Marko Rauhamaa
Skip Montanaro : > Running flake8 over some code which has if statements with multiple > conditions like this: > > if (some_condition and > some_other_condition and > some_final_condition): > play_bingo() > [...] > > is there a better way to

Continuing indentation

2016-03-02 Thread Skip Montanaro
Running flake8 over some code which has if statements with multiple conditions like this: if (some_condition and some_other_condition and some_final_condition): play_bingo() the tool complains that the indentation of the conditions is the same as the next block. In

[issue26460] datetime.strptime without a year fails on Feb 29

2016-03-02 Thread Andrej Antonov
Changes by Andrej Antonov : -- nosy: +polymorphm ___ Python tracker ___ ___

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue25612] nested try..excepts don't work correctly for generators

2016-03-02 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___

[issue26473] Python 3.5 not run

2016-03-02 Thread Steve Dower
Steve Dower added the comment: It's unfortunately not so clear from the "minimum Vista" statement that WS2K3 is excluded, but if you follow the official statement ("supported by Microsoft") then you'll see that WS2K3 is no longer covered. Vista and Windows Server 2008 are the minimum

Re: Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Jon Ribbens
On 2016-03-02, Chris Angelico wrote: > To be fair, this isn't a JS exploit; it's a trusting-of-trust issue - > eBay has declared that you can trust them to sanitize their sellers' > listings, and so you trust eBay, but this exploit gets past the > filter. This is true. It

ANN Yoump3r - create your personal mp3 playlist from youtube

2016-03-02 Thread Andrea Stagi
Yoump3r is a simple web service I started working on to make your personal mp3 playlist from YouTube, built on top of Django and AngularJS. You can find the source code here: https://github.com/astagi/yoump3r Try the demo: yoump3r.herokuapp.com Any kind of suggestion/contribution is appreciated!

ANN python-taiga 0.8.5

2016-03-02 Thread Andrea Stagi
Python-taiga 0.8.5 released! python-taiga is a python module for communicating with Taiga.io, a new project management platform! For more info https://taiga.io/ This release includes new patch method for models and some minfixes. You can find python-taiga code on Github

Pytest 2.9.0 released

2016-03-02 Thread Bruno Oliveira
Hi everyone, I'm happy to announce that pytest 2.9.0 has been released! pytest is a mature Python testing tool with more than a 1100 tests against itself, passing on many different interpreters and platforms. As usual, you can upgrade using pip: pip install -U pytest To see the changelog,

Re: What arguments are passed to the __new__ method ?

2016-03-02 Thread Ian Kelly
On Wed, Mar 2, 2016 at 10:57 AM, Rob Gaddi wrote: > Peter Pearson wrote: > >> On Tue, 1 Mar 2016 18:24:12 +0100, ast wrote: >>> >>> It's not clear to me what arguments are passed to the >>> __new__ method. Here is a piece of code: >>> >>> >>> class Premiere: >>>

[issue26473] Python 3.5 not run

2016-03-02 Thread SilentGhost
SilentGhost added the comment: As the installer says and as mentioned in documentation a minimum supported versions is Windows Vista. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Alessandro, thank you very much for your work and perseverance. I will do my best to commit this next weekend. -- stage: patch review -> commit review ___ Python tracker

[issue26473] Python 3.5 not run

2016-03-02 Thread Slava
New submission from Slava: Python 3.5 not run on Windows Server 2003 (PE mode). Python 3.5 installer not work too. -- components: Windows files: Clipboard01.jpg messages: 261134 nosy: newillusion, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status:

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread SilentGhost
Changes by SilentGhost : -- nosy: -SilentGhost ___ Python tracker ___ ___

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread Alessandro Cucci
Alessandro Cucci added the comment: Meanwhile I made corrections after @belopolsky latest review -- Added file: http://bugs.python.org/file42063/issue19475_v17.patch ___ Python tracker

Re: Explaining names vs variables in Python

2016-03-02 Thread Marko Rauhamaa
Steven D'Aprano : > In this case, "same object" carries the normal English meaning of > "same" and the normal computer science meaning of "object" in the > sense of "Object Oriented Programming". There's no mystery here, no > circular definition. I see three possible ways of

Re: What arguments are passed to the __new__ method ?

2016-03-02 Thread Rob Gaddi
Peter Pearson wrote: > On Tue, 1 Mar 2016 18:24:12 +0100, ast wrote: >> >> It's not clear to me what arguments are passed to the >> __new__ method. Here is a piece of code: >> >> >> class Premiere: >> >> def __new__(cls, price): >> return object.__new__(cls) >> >> def

Re: Explaining names vs variables in Python

2016-03-02 Thread Ben Finney
Salvatore DI DIO writes: > I know Python does not have variables, but names. In addition to the other food answers in this thread, you will want to watch Ned Batchelder's presentation on “Facts and myths about Python

Re: Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 4:05 AM, Steven D'Aprano wrote: > Speaking of Javascript exploits: > > http://thedailywtf.com/articles/bidding-on-security > > > This is a real exploit, and Ebay have refused to fix it. Yay them! > > More here: > >

Re: What arguments are passed to the __new__ method ?

2016-03-02 Thread Peter Pearson
On Tue, 1 Mar 2016 18:24:12 +0100, ast wrote: > > It's not clear to me what arguments are passed to the > __new__ method. Here is a piece of code: > > > class Premiere: > > def __new__(cls, price): > return object.__new__(cls) > > def __init__(self, price): > pass

[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Berker Peksag
Berker Peksag added the comment: Good catch, thanks! -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 305ae007899b by Berker Peksag in branch '2.7': Issue #26246: Set initial value of the hidden attr when creating copy button. https://hg.python.org/cpython/rev/305ae007899b -- ___ Python tracker

[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7444bdd400cd by Berker Peksag in branch '3.4': Issue #26246: Set initial value of the hidden attr when creating copy button. https://hg.python.org/cpython/rev/7444bdd400cd New changeset 256339c28d42 by Berker Peksag in branch '3.5': Issue #26246:

Re: Explaining names vs variables in Python

2016-03-02 Thread Rustom Mody
On Wednesday, March 2, 2016 at 10:53:40 PM UTC+5:30, Steven D'Aprano wrote: > On Thu, 3 Mar 2016 01:11 am, Marko Rauhamaa wrote: > > > What is missing is the rules that are obeyed by the "is" operator. > > I think what is actually missing is some common bloody sense. The Python > docs are

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Jakub! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba71aecec943 by Berker Peksag in branch 'default': Issue #26335: Make mmap.write() return the number of bytes written like https://hg.python.org/cpython/rev/ba71aecec943 -- nosy: +python-dev ___ Python

Re: Explaining names vs variables in Python

2016-03-02 Thread Steven D'Aprano
On Thu, 3 Mar 2016 01:11 am, Marko Rauhamaa wrote: > What is missing is the rules that are obeyed by the "is" operator. I think what is actually missing is some common bloody sense. The Python docs are written in English, and don't define *hundreds*, possible *thousands* of words because they

Re: Explaining names vs variables in Python

2016-03-02 Thread Steven D'Aprano
On Thu, 3 Mar 2016 12:48 am, Chris Angelico wrote: > On Thu, Mar 3, 2016 at 12:39 AM, Marko Rauhamaa wrote: >> Chris Angelico : >> >>> Python defines that every object has an identity, which can be >>> represented as an integer. Since this is an intrinsic part

Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Steven D'Aprano
Speaking of Javascript exploits: http://thedailywtf.com/articles/bidding-on-security This is a real exploit, and Ebay have refused to fix it. Yay them! More here: http://blog.checkpoint.com/2016/02/02/ebay-platform-exposed-to-severe-vulnerability/ -- Steven --

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-02 Thread Rustom Mody
On Tuesday, March 1, 2016 at 10:36:02 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 1 Mar 2016 04:08 am, Rustom Mody wrote: > > > And who is the last arbiter on that 'reality'? > > I'll give you the benefit of the doubt that this is a genuine question, and > not just an attempt to ask a

[issue25825] AIX shared library extension modules installation broken

2016-03-02 Thread Michael Felt
Michael Felt added the comment: FYI: when build and src are the same directory, there is no error message. However, when src and build are in seperate directories (e.g., build = '.', src = '../src/python-2.7.11' the following message occurs MANY times: unable to execute

[issue25888] awaiting on coroutine that is being awaited should be an error

2016-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: Committed. Thanks for the review, Martin! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25888] awaiting on coroutine that is being awaited should be an error

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset e16084e07761 by Yury Selivanov in branch '3.5': coroutines: Error when awaiting on coroutine that's being awaited https://hg.python.org/cpython/rev/e16084e07761 New changeset 2218ce5c592f by Yury Selivanov in branch 'default': Merge 3.5 (issue

Re: rdflib subclass problem

2016-03-02 Thread duncan smith
On 02/03/16 08:16, dieter wrote: > duncan smith writes: > >> I'm just getting to grips with RDF and rdflib, and I've hit >> something I can't figure out. >> >> I have a graph with information on two people. (I haven't shown the >> imports below because they're

[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Michael Felt
Michael Felt added the comment: wonderful suggestion - it gets the build past that hurdle. My bad that I had not looked more carefully at configure --help output. But that brings back another 'issue' I had also seen when verifying 2.7.10. I shall look in the bug-list for a related issue (I

[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-02 Thread Michael Herold
Changes by Michael Herold : Added file: http://bugs.python.org/file42062/example.py ___ Python tracker ___

[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-02 Thread Michael Herold
Michael Herold added the comment: I have prepared a working patch to sketch how this could be implemented. A small example (example.py) shows how this feature can be used to implement a fallback to environment variables. This patch allows Currying of positional arguments (i.e. you can give

  1   2   >