Re: Help me with this code PLEASE

2013-11-06 Thread Antoon Pardon
Op 05-11-13 22:26, Nick the Gr33k schreef: I know i'm close to solution, i can feel it but i have some issues. The code we arr discussing is the following: No you are not. You are just doing random changes, without any understanding. If you had followed my suggestion and actually read the

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-06 Thread Nick the Gr33k
Στις 6/11/2013 9:38 πμ, ο/η Nick the Gr33k έγραψε: Ah great!!! I just examined my other MySQL database which just stored webpages and their corresponding visits and voila. Someone was able to pass values into my counters table: look: http://superhost.gr/?show=stats thats why it didn't had 1

Re: Help me with this code PLEASE

2013-11-06 Thread Mark Lawrence
On 06/11/2013 01:14, Nick the Gr33k wrote: How, do i i proceed? If at first you don't succeed, keep asking on comp.lang.python until someone gives me the completely bodged solution that I keep asking for even if it's complete nonsense. -- Python is the second best programming language in

Re: How to add a current string into an already existing list

2013-11-06 Thread Mark Lawrence
On 06/11/2013 05:36, Dave Angel wrote: On Tue, 5 Nov 2013 09:45:15 -0600, Tim Chase python.l...@tim.thechases.com wrote: You're assigning it to the bound function rather than calling the function. Use the call operator: data = infile.readlines() Thanks for spoiling the lesson. Nicks

Re: Help me with this code PLEASE

2013-11-06 Thread Joel Goldstick
On Wed, Nov 6, 2013 at 3:49 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/11/2013 01:14, Nick the Gr33k wrote: How, do i i proceed? If at first you don't succeed, keep asking on comp.lang.python until someone gives me the completely bodged solution that I keep asking for even if

Anki add-on - Help needed

2013-11-06 Thread SH
Is anybody here able to help me finish off an Anki add-on? If you're not familiar with it, Anki (http://ankisrs.net/) is an open source, cross platform flashcard learning program, in PyQT. It's extensible, with add- ons. Thing is, I'm not a programmer, but I've managed to make my own add-on by

Re: install package from github repository

2013-11-06 Thread Amirouche Boubekki
2013/11/6 C. Ng ngc...@gmail.com Ok, that seems to work... I modified from another package. cool I don't understand how setup.py does it exactly, but got it done anyways. as usual :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Help me with this code PLEASE

2013-11-06 Thread Grant Edwards
On 2013-11-06, Denis McMahon denismfmcma...@gmail.com wrote: On Wed, 06 Nov 2013 00:35:56 +0200, Nick the Gr33k wrote: Now i realizes i just cannot store lists into it's columns because it does not support a collection datatype. All databases support storing of collections, but *NOT THE WAY

Re: Anki add-on - Help needed

2013-11-06 Thread Joel Goldstick
On Wed, Nov 6, 2013 at 9:17 AM, SH sshh@invalid.invalid wrote: Is anybody here able to help me finish off an Anki add-on? If you're not familiar with it, Anki (http://ankisrs.net/) is an open source, cross platform flashcard learning program, in PyQT. It's extensible, with add- ons.

I need multiples images in one image whit PIL.

2013-11-06 Thread hpuerta
Hi, I need to join multiples images in one image, in client side i don't found the way to do, is possible in server side whit python django, any suggest? -- https://mail.python.org/mailman/listinfo/python-list

Python PDB conditional breakpoint

2013-11-06 Thread Tom P
I can't get conditional breakpoints to work. I have a variable ID and I want to set a breakpoint which runs until ID==11005. Here's what happens - - import sys ... (Pdb) b 53, ID==11005 Breakpoint 1 at /home/tom/Desktop/BEST Tmax/MYSTUFF/sqlanalyze3.py:53 (Pdb) b Num Type Disp Enb

To whoever hacked into my Database

2013-11-06 Thread Νίκος Γκρ33κ
Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! -- https://mail.python.org/mailman/listinfo/python-list

Re: I need multiples images in one image whit PIL.

2013-11-06 Thread Roy Smith
In article 6a9d8528-5f64-4d0f-b759-1d73078eb...@googlegroups.com, hpue...@apptitud.com.co wrote: Hi, I need to join multiples images in one image, in client side i don't found the way to do, is possible in server side whit python django, any suggest? There are several¦ Python image

[solved]Re: Python PDB conditional breakpoint

2013-11-06 Thread Tom P
On 06.11.2013 16:14, Tom P wrote: ok I figured it. ID is a tuple, not a simple variable. The correct test is ID[0]==11005 I can't get conditional breakpoints to work. I have a variable ID and I want to set a breakpoint which runs until ID==11005. Here's what happens - --

Re: To whoever hacked into my Database

2013-11-06 Thread Joel Goldstick
On Wed, Nov 6, 2013 at 10:25 AM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! -- https://mail.python.org/mailman/listinfo/python-list Nothing like a good challenge.

Re: To whoever hacked into my Database

2013-11-06 Thread Alister
On Wed, 06 Nov 2013 17:25:04 +0200, Νίκος Γκρ33κ wrote: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! I don't think any cracker (hacker is something different) would need to. you are doing a more than

Re: Auto-authorization for Google Drive using Python in Mac OS X

2013-11-06 Thread Peter Pearson
On Mon, 4 Nov 2013 11:46:54 -0800 (PST), Pratik Mehta wrote: I have written Python code for Google Drive which uploads the image files to my drive app. I have three queries. Here is my code: [snip] My Queries: 1. This program will upload all the images to my given client_id and

Re: To whoever hacked into my Database

2013-11-06 Thread Steve Simmons
On 06/11/2013 16:40, Alister wrote: On Wed, 06 Nov 2013 17:25:04 +0200, Νίκος Γκρ33κ wrote: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! (sorry every one I tried not to reply to Nicos but finally lost it)

Re: To whoever hacked into my Database

2013-11-06 Thread Mark Lawrence
On 06/11/2013 15:25, Νίκος Γκρ33κ wrote: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! Terribly sorry old chap. We had our first team meeting this morning. They were very enthusiastic, really wanted to get on

Re: Python on a MacBook Pro (not my machine)

2013-11-06 Thread John Ladasky
I just wanted to say thank you to everyone who posted here with recommendations for programming-friendly text editors. I will follow up on this after I have resolved a more fundamental issue with my new student -- his Python 3.3.2 interpreter segfaults and crashes on the second command! I'll

Re: how to load test a web app?

2013-11-06 Thread Mike Williams
On Fri, Nov 1, 2013 at 11:03 AM, Albert-Jan Roskam fo...@yahoo.com wrote: I would like to test the reliability and stability of at least one of them I am curious whether the program will crash under certain circumstances (e.g. multiple users checking code at *exactly* the same moment). What

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-06 Thread Denis McMahon
On Wed, 06 Nov 2013 09:30:03 +0200, Nick the Gr33k wrote: I have decided to take your advice. No you haven't. You only think you have, but really you either haven't understood the advice at all. My implementation is like the following. I do not use an extra table of downlaods that i

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-06 Thread rusi
On Wednesday, November 6, 2013 11:29:11 PM UTC+5:30, Denis McMahon wrote: On Wed, 06 Nov 2013 09:30:03 +0200, Nick the Gr33k wrote: I have decided to take your advice. No you haven't. You only think you have, but really you either haven't… No, you think that he thinks that he has. Of

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-06 Thread Mark Lawrence
On 06/11/2013 17:59, Denis McMahon wrote: On Wed, 06 Nov 2013 09:30:03 +0200, Nick the Gr33k wrote: I have decided to take your advice. No you haven't. You only think you have, but really you either haven't understood the advice at all. My implementation is like the following. I do not use

Py 3.3.2, MacBookPro, segmentation fault, GCC issue?

2013-11-06 Thread John Ladasky
I am trying to help a student of mine install Python 3 on his MacBook Pro. The installation succeeds. However, upon opening the Python interpreter, he can only execute one Python command successfully. On the second command, the interpreter crashes, giving the error Segmentation fault: 11. I

Re: how to load test a web app?

2013-11-06 Thread Skip Montanaro
Have a look at selenium and sauce labs: http://www.seleniumhq.org/ https://saucelabs.com/ Maybe we should pass that information along to Kathleen Sebelius. :-) Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: Py 3.3.2, MacBookPro, segmentation fault, GCC issue?

2013-11-06 Thread Mark Lawrence
On 06/11/2013 18:15, John Ladasky wrote: I am trying to help a student of mine install Python 3 on his MacBook Pro. The installation succeeds. However, upon opening the Python interpreter, he can only execute one Python command successfully. On the second command, the interpreter crashes,

Re: Slicing with negative strides

2013-11-06 Thread Peter Cacioppi
On Monday, October 28, 2013 10:22:00 PM UTC-7, Steven D'Aprano wrote: Does anyone here use slices (or range/xrange) with negative strides other than -1? Non default positive strides are very handy, but negative strides seem weird to me. Not the negative striding exactly, but the way

Immediate Opening (Sr C++ / Linux Developer / Lead)

2013-11-06 Thread parker . svksystems
Hi, Immediate Opening (Sr C++ / Linux Developer / Lead) Location: Barrington, IL Employment Type: Contract Mandatory Skills Linux Expert, Multi-Threading, C++, Good Communication skills, Agile, Scrum, Design Patterns Desired Skills MFC Job Responsibilities Minimum 8-10

Re: how to load test a web app?

2013-11-06 Thread William Ray Wing
On Nov 6, 2013, at 1:25 PM, Skip Montanaro s...@pobox.com wrote: Have a look at selenium and sauce labs: http://www.seleniumhq.org/ https://saucelabs.com/ Maybe we should pass that information along to Kathleen Sebelius. :-) Skip Definitely! Anyone seen the cover of this week's issue

Re: Py 3.3.2, MacBookPro, segmentation fault, GCC issue?

2013-11-06 Thread John Ladasky
Thanks, Mark. Reading through the information in your link, I appear to have encountered an actual bug specific to Python 3.3.2 and OS X 10.9. And it appears that the 3.3.3 version of Python that fixes this bug is still in beta. And that I can have my student download the working version

Re: Py 3.3.2, MacBookPro, segmentation fault, GCC issue?

2013-11-06 Thread Mark Lawrence
On 06/11/2013 20:47, John Ladasky wrote: Thanks, Mark. Reading through the information in your link, I appear to have encountered an actual bug specific to Python 3.3.2 and OS X 10.9. And it appears that the 3.3.3 version of Python that fixes this bug is still in beta. And that I can have

Re: To whoever hacked into my Database

2013-11-06 Thread Νίκος Γκρ33κ
Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! No luck yet mighty one? :) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python on a MacBook Pro (not my machine)

2013-11-06 Thread Cameron Simpson
On 06Nov2013 09:51, John Ladasky john_lada...@sbcglobal.net wrote: I just wanted to say thank you to everyone who posted here with recommendations for programming-friendly text editors. I will follow up on this after I have resolved a more fundamental issue with my new student -- his

Re: To whoever hacked into my Database

2013-11-06 Thread mm0fmf
On 06/11/2013 21:26, Νίκος Γκρ33κ wrote: Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! No luck yet mighty one? :) Nikos, just in case you don't understand

Re: To whoever hacked into my Database

2013-11-06 Thread Mark Lawrence
On 06/11/2013 21:26, Νίκος Γκρ33κ wrote: Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! No luck yet mighty one? :) So you're proud of the fact that you've only

Re: how to load test a web app?

2013-11-06 Thread Gene Heskett
On Wednesday 06 November 2013 16:10:40 Skip Montanaro did opine: Have a look at selenium and sauce labs: http://www.seleniumhq.org/ https://saucelabs.com/ Maybe we should pass that information along to Kathleen Sebelius. :-) Skip I seriously doubt it would do much good. I had a

Re: To whoever hacked into my Database

2013-11-06 Thread Grant Edwards
On 2013-11-06, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/11/2013 21:26, ?? ??33?? wrote: 6/11/2013 5:25 , ??/?? ?? ??33?? : Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it

Re: how to load test a web app?

2013-11-06 Thread Mark Lawrence
On 06/11/2013 18:25, Skip Montanaro wrote: Have a look at selenium and sauce labs: http://www.seleniumhq.org/ https://saucelabs.com/ Maybe we should pass that information along to Kathleen Sebelius. :-) Skip Was she also involved with the nectar search toolbar? -- Python is the second

Re: To whoever hacked into my Database

2013-11-06 Thread Johannes Findeisen
On Wed, 06 Nov 2013 23:26:26 +0200 Νίκος Γκρ33κ wrote: Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! No luck yet mighty one? :) I am very new to this

Re: To whoever hacked into my Database

2013-11-06 Thread Tim Chase
On 2013-11-06 22:22, Grant Edwards wrote: Waving red flags at female bulls is rarely dangerous. ;) though I still wouldn't recommend it if you're COWardly :-) Well, maybe the issue is MOOt. -tkc -- https://mail.python.org/mailman/listinfo/python-list

Re: To whoever hacked into my Database

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 9:34 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-11-06 22:22, Grant Edwards wrote: Waving red flags at female bulls is rarely dangerous. ;) though I still wouldn't recommend it if you're COWardly :-) Well, maybe the issue is MOOt. Ugh, if only these

Re: Immediate Opening (Sr C++ / Linux Developer / Lead)

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 6:32 AM, parker.svksyst...@gmail.com wrote: Immediate Opening (Sr C++ / Linux Developer / Lead) Thanks and Regards Petter Parker Normally we'd ask job postings to be redirected to the Python Job Board, but this one doesn't appear to have anything to do with Python at

Re: To whoever hacked into my Database

2013-11-06 Thread Mark Lawrence
On 06/11/2013 22:54, Chris Angelico wrote: On Thu, Nov 7, 2013 at 9:34 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-11-06 22:22, Grant Edwards wrote: Waving red flags at female bulls is rarely dangerous. ;) though I still wouldn't recommend it if you're COWardly :-) Well,

Re: To whoever hacked into my Database

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 10:52 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/11/2013 22:54, Chris Angelico wrote: On Thu, Nov 7, 2013 at 9:34 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-11-06 22:22, Grant Edwards wrote: Waving red flags at female bulls is rarely

Show off your Python chops and compete with others

2013-11-06 Thread Nathaniel Sokoll-Ward
Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at different skills. And recruiters use MetaBright to find outrageously skilled job candidates. Python is a new area of expertise for us. We make

Re: To whoever hacked into my Database

2013-11-06 Thread Mark Lawrence
On 06/11/2013 23:57, Chris Angelico wrote: On Thu, Nov 7, 2013 at 10:52 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/11/2013 22:54, Chris Angelico wrote: On Thu, Nov 7, 2013 at 9:34 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-11-06 22:22, Grant Edwards wrote:

Re: Python on a MacBook Pro (not my machine)

2013-11-06 Thread Jake Angulo
I use a Macbook air for programming - yes it has Python 2.x in it. For code editing i use a combination of: 1) Wing IDE 101 (from their website: is free scaled down Python IDE designed for teaching introductory programming classes) 2) Sublime Text 3) Good old Vi You could try those On Thu, Nov

Re: Show off your Python chops and compete with others

2013-11-06 Thread Andrew Cooper
On 07/11/2013 00:00, Nathaniel Sokoll-Ward wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at different skills. And recruiters use MetaBright to find outrageously skilled job

Re: Show off your Python chops and compete with others

2013-11-06 Thread Roy Smith
In article jWAeu.102858$rN3.45213@fx21.am4, Andrew Cooper root@127.0.0.1 wrote: On 07/11/2013 00:00, Nathaniel Sokoll-Ward wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at

Re: Show off your Python chops and compete with others

2013-11-06 Thread Andrew Cooper
On 07/11/2013 00:24, Roy Smith wrote: In article jWAeu.102858$rN3.45213@fx21.am4, Andrew Cooper root@127.0.0.1 wrote: On 07/11/2013 00:00, Nathaniel Sokoll-Ward wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to

Re: To whoever hacked into my Database

2013-11-06 Thread Gene Heskett
On Wednesday 06 November 2013 18:19:17 Chris Angelico did opine: On Thu, Nov 7, 2013 at 9:34 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-11-06 22:22, Grant Edwards wrote: Waving red flags at female bulls is rarely dangerous. ;) though I still wouldn't recommend it if

Re: Show off your Python chops and compete with others

2013-11-06 Thread Mark Lawrence
On 07/11/2013 00:28, Andrew Cooper wrote: On 07/11/2013 00:24, Roy Smith wrote: In article jWAeu.102858$rN3.45213@fx21.am4, Andrew Cooper root@127.0.0.1 wrote: On 07/11/2013 00:00, Nathaniel Sokoll-Ward wrote: Thought this group would appreciate this: www.metabright.com/challenges/python

Re: To whoever hacked into my Database

2013-11-06 Thread Ethan Furman
On 11/06/2013 03:57 PM, Chris Angelico wrote: On Thu, Nov 7, 2013 at 10:52 AM, Mark Lawrence wrote: On 06/11/2013 22:54, Chris Angelico wrote: On Thu, Nov 7, 2013 at 9:34 AM, Tim Chase wrote: On 2013-11-06 22:22, Grant Edwards wrote: Waving red flags at female bulls is rarely dangerous. ;)

Re: Show off your Python chops and compete with others

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward nathanielsokollw...@gmail.com wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at different skills. And recruiters use MetaBright

Help with my programming homework (python, and raptor)

2013-11-06 Thread jonny seelye
Employee Salaries You are working for a medium sized construction company as an intern in the Information Technology department. A director in the Human Resources department recently asked the IT department to write a small program that will help them do a salary comparison. The

Re: Show off your Python chops and compete with others

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward nathanielsokollw...@gmail.com wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at different skills. And recruiters use MetaBright

Re: Help with my programming homework (python, and raptor)

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 11:56 AM, jonny seelye casiobo...@gmail.com wrote: Employee Salaries Use the following test data to test your program. Employee Name Salary John$45,600 Average Salary: $63, 862.50 Sue $55,400 Highest Salary: $89,750 David $64,700

Re: Show off your Python chops and compete with others

2013-11-06 Thread MRAB
On 07/11/2013 00:59, Chris Angelico wrote: On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward nathanielsokollw...@gmail.com wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at

Re: Show off your Python chops and compete with others

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 12:12 PM, MRAB pyt...@mrabarnett.plus.com wrote: From which languages are Python classes derived from? Does it really have the word from twice? You know, I didn't even notice that. But since that was copied and pasted, I would say that yes, it really does. That's a

Re: Show off your Python chops and compete with others

2013-11-06 Thread John Nagle
On 11/6/2013 5:04 PM, Chris Angelico wrote: On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward nathanielsokollw...@gmail.com wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at

Re: Show off your Python chops and compete with others

2013-11-06 Thread John Ladasky
On Wednesday, November 6, 2013 4:00:57 PM UTC-8, Nathaniel Sokoll-Ward wrote: Thought this group would appreciate this: www.metabright.com/challenges/python I have to concur with what several other people are saying here. Several of MetaBright's questions are ambiguously worded, or expect

Re: Show off your Python chops and compete with others

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 12:55 PM, John Ladasky john_lada...@sbcglobal.net wrote: On Wednesday, November 6, 2013 4:00:57 PM UTC-8, Nathaniel Sokoll-Ward wrote: Thought this group would appreciate this: www.metabright.com/challenges/python I have to concur with what several other people are

Re: Help with my programming homework (python, and raptor)

2013-11-06 Thread Denis McMahon
On Wed, 06 Nov 2013 16:56:26 -0800, jonny seelye wrote: Since the name of the employee will be a string and the salary will be a number, you decide to use two parallel arrays to store the data. The hell I do! I decide to do this: # data initialisation minsal = maxsal = sumsal = 0.0 minpers

Re: To whoever hacked into my Database

2013-11-06 Thread nikos sucks
Nikos said: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! Seriously man, you gotta stop. Are you trying to be a host provider? You know absolutely nothing about what you are doing. There are security holes

Re: To whoever hacked into my Database

2013-11-06 Thread Tim Chase
On 2013-11-07 10:57, Chris Angelico wrote: Waving red flags at female bulls is rarely dangerous. ;) though I still wouldn't recommend it if you're COWardly :-) Well, maybe the issue is MOOt. Ugh, if only these puns were like CALF-way funny... I hereby profoundly apologise to the

Re: Show off your Python chops and compete with others

2013-11-06 Thread Tim Chase
On 2013-11-06 17:31, John Nagle wrote: MetaBright makes skill assessments to measure how talented people are at different skills. And recruiters use MetaBright to find outrageously skilled job candidates. With tracking cookies blocked, you get 0 points. And with JavaScript blocked, you

i want to know about python language

2013-11-06 Thread Kewl p
h -- https://mail.python.org/mailman/listinfo/python-list

Re: i want to know about python language

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 2:18 PM, Kewl p kewlp...@gmail.com wrote: h You've come to the right place, but (as the Princess Ida put it) the subject's deep - how should we treat it, pray? I recommend you start with the Python tutorial: http://docs.python.org/3/tutorial/ and when you've worked

Re: To whoever hacked into my Database

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 11:22 AM, Ethan Furman et...@stoneleaf.us wrote: Not only the OP (which I missed, 'cause he's a troll) was absolutely hilarious, but this part of the thread has made my day. I guess trolls can (rarely) have good side effects. :) I could continue with the puns, but it'd

Re: i want to know about python language

2013-11-06 Thread Kewl p
On Thursday, November 7, 2013 8:48:26 AM UTC+5:30, Kewl p wrote: h thanks very much -- https://mail.python.org/mailman/listinfo/python-list

How to parse JSON passed on the command line?

2013-11-06 Thread Anthony Papillion
Hello Everyone, I'm writing a little helper script in Python that will access a JSON formatted argument from the shell when it's called. The parameter will look like this: {url:http://www.google.com} So, if my program is called getargfromcli.py the call will look like this: getargfromcli.py

Re: How to parse JSON passed on the command line?

2013-11-06 Thread Chris Rebert
On Wed, Nov 6, 2013 at 7:53 PM, Anthony Papillion papill...@gmail.com wrote: Hello Everyone, I'm writing a little helper script in Python that will access a JSON formatted argument from the shell when it's called. The parameter will look like this: {url:http://www.google.com} So, if my

Re: How to parse JSON passed on the command line?

2013-11-06 Thread Roy Smith
In article mailman.2117.1383796399.18130.python-l...@python.org, Anthony Papillion papill...@gmail.com wrote: Hello Everyone, I'm writing a little helper script in Python that will access a JSON formatted argument from the shell when it's called. The parameter will look like this:

Re: How to parse JSON passed on the command line?

2013-11-06 Thread yupeng zhang
在 2013年11月7日星期四UTC+8上午11时53分09秒,Anthony Papillion写道: Hello Everyone, I'm writing a little helper script in Python that will access a JSON formatted argument from the shell when it's called. The parameter will look like this: {url:http://www.google.com} So, if my program

Re: i want to know about python language

2013-11-06 Thread Kewl p
On Thursday, November 7, 2013 8:48:26 AM UTC+5:30, Kewl p wrote: h can i get link of a ide in which python can run,,...?? -- https://mail.python.org/mailman/listinfo/python-list

Flexible programming environment (was: i want to know about python language)

2013-11-06 Thread Ben Finney
Kewl p kewlp...@gmail.com writes: On Thursday, November 7, 2013 8:48:26 AM UTC+5:30, Kewl p wrote: h can i get link of a ide in which python can run,,...?? I recommend learning a programming environment that is *not* tied to a particular programming language. Use an environment that

[issue19507] ssl.wrap_socket() with server_hostname should imply match_hostname()

2013-11-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why it's surprising. SNI and certificate validation are two different things. Besides, this is adding a new level of complication to the wrap_socket() signature. -- ___ Python tracker

[issue19508] Add warning that Python doesn't verify SSL certs by default

2013-11-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: There is already an entire section about this: http://docs.python.org/dev/library/ssl.html#security-considerations It's up to consumers of the API to choose their security policy, the ssl module merely provides building blocks to implement it. I think the ssl

[issue19508] Add warning that Python doesn't verify SSL certs by default

2013-11-06 Thread STINNER Victor
STINNER Victor added the comment: There is already an entire section about this: http://docs.python.org/dev/library/ssl.html#security-considerations So we just need to add a link from http, ftp, imap, ... to this section? Using only

[issue15216] Support setting the encoding on a text stream after creation

2013-11-06 Thread Nick Coghlan
Nick Coghlan added the comment: Just reviewed Victor's patch - aside from a trivial typo and not covering the C implementation or documentation yet, it looks good to me. Most importantly, the tests in that patch could be used to validate a C implementation as well. I'll see if I can find

[issue15216] Support setting the encoding on a text stream after creation

2013-11-06 Thread Andrei Dorian Duma
Andrei Dorian Duma added the comment: I am interested in working on this, but I might need guidance at times. Is that acceptable? If yes, I'm willing to start as soon as possible. -- nosy: +andrei.duma ___ Python tracker rep...@bugs.python.org

[issue15216] Support setting the encoding on a text stream after creation

2013-11-06 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks, Andrei, that would be great. The tests and the Python version in Victor's patch show the desired API and behaviour. In theory, the C version should just be a matter of adding an equivalent textiowrapper_set_encoding method as a static function in

[issue19378] Clean up Python 3.4 API additions in the dis module

2013-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce8dd299cdc4 by Nick Coghlan in branch 'default': Close #19378: address flaws in the new dis module APIs http://hg.python.org/cpython/rev/ce8dd299cdc4 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open -

[issue17823] 2to3 fixers for missing codecs

2013-11-06 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17823 ___ ___ Python-bugs-list

[issue19332] Guard against changing dict during iteration

2013-11-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: Duplicate of this: http://bugs.python.org/issue6017 -- nosy: +stevenjd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19332 ___

[issue19332] Guard against changing dict during iteration

2013-11-06 Thread Steven D'Aprano
Changes by Steven D'Aprano steve+pyt...@pearwood.info: -- nosy: -stevenjd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19332 ___ ___

[issue17823] 2to3 fixers for missing codecs

2013-11-06 Thread Nick Coghlan
Nick Coghlan added the comment: Switch direction of dependency to make this fixer rely on restoring the codec aliases in issue 7475 first. -- dependencies: +codecs missing: base64 bz2 hex zlib hex_codec ... ___ Python tracker rep...@bugs.python.org

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2013-11-06 Thread Nick Coghlan
Nick Coghlan added the comment: Providing the 2to3 fixers in issue 17823 now depends on this issue rather than the other way around (since not having to translate the names simplifies the fixer a bit). -- dependencies: -2to3 fixers for missing codecs

[issue13674] crash in datetime.strftime

2013-11-06 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13674 ___ ___

[issue13674] crash in datetime.strftime

2013-11-06 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- components: +Windows versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13674 ___

[issue19511] lib2to3 Grammar file is no longer a Python 3 superset

2013-11-06 Thread Nick Coghlan
New submission from Nick Coghlan: In writing some new fixers for issue 17823, I noticed the 2/3 bridge grammar in lib2to3 was never updated to handle yield from. This item is also missing from the checklist in the devguide: http://docs.python.org/devguide/grammar.html -- components:

[issue17823] 2to3 fixers for missing codecs

2013-11-06 Thread Nick Coghlan
Nick Coghlan added the comment: Attached diff shows a proof of concept fixer for the encode case. It could be adjusted fairly easily to also handle decode methods (by including an alternative in the pattern and also capturing the method name) I'm sure how useful such a fixer would be in

[issue9216] FIPS support for hashlib

2013-11-06 Thread Bohuslav Slavek Kabrda
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com: -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9216 ___ ___

[issue17823] 2to3 fixers for missing codecs

2013-11-06 Thread Nick Coghlan
Nick Coghlan added the comment: On 7 November 2013 00:06, Nick Coghlan rep...@bugs.python.org wrote: I'm sure how useful such a fixer would be in practice, though, since it only triggers when the codec name is passed as a literal - passing in a variable instead keeps it from firing. Oops,

[issue13674] crash in datetime.strftime

2013-11-06 Thread Tim Golden
Tim Golden added the comment: Attached is a patch with tests -- keywords: +patch Added file: http://bugs.python.org/file32516/issue13674.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13674

[issue19511] lib2to3 Grammar file is no longer a Python 3 superset

2013-11-06 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19511 ___ ___ Python-bugs-list

[issue17823] 2to3 fixers for missing codecs

2013-11-06 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17823 ___ ___ Python-bugs-list

[issue13674] crash in datetime.strftime

2013-11-06 Thread STINNER Victor
STINNER Victor added the comment: +if (strchr(y, outbuf[1]) buf.tm_year 0) hum... why not simply outbuf[1] == 'y' ? It would be more explicit and less surprising. For the unit test, it would be nice to test also asctime(), even if time.asctime() doesn't use asctime() of the C

[issue19475] Add microsecond flag to datetime isoformat()

2013-11-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: MAL: Have you thought about the rounding/truncation issues associated with not showing microseconds ? I believe it has to be the truncation. Rounding is better left to the user code where it can be done either using timedelta arithmetics or at the time

  1   2   >