Re: This formating is really tricky

2014-08-27 Thread Peter Otten
Seymore4Head wrote: > On Mon, 25 Aug 2014 18:22:35 -0400, Terry Reedy > wrote: > >>On 8/25/2014 4:14 PM, Seymore4Head wrote: >>> import random >>> sets=3 >>> for x in range(0, sets): >>> pb2=random.choice([1-53]) >> >>You want random.randint(1, 53) >>... >>> alist = sorted([pb1, pb2, p

ANN: eGenix PyRun - One file Python Runtime 2.0.1

2014-08-27 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 2.0.1 An easy-to-use single file relocatable Python run-time - available for Linux, Mac OS X and U

Re: Python vs C++

2014-08-27 Thread Ian Kelly
On Tue, Aug 26, 2014 at 2:12 AM, Amirouche Boubekki wrote: > 2014-08-26 6:02 GMT+02:00 Ian Kelly : > >> On Mon, Aug 25, 2014 at 4:52 AM, Amirouche Boubekki >> wrote: >> > - I am a big fan of Final Fantasy games, it seems to be an easy game >> > experience to code >> >> Maybe not so easy, if th

Re: Reading from sys.stdin reads the whole file in

2014-08-27 Thread Steven D'Aprano
On Tue, 26 Aug 2014 23:07:36 -0700, Naoki INADA wrote: > for line in iter(sys.stdin.readline(), ''): Thanks for that. Removing the parens after readline seems to do the trick. -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading from sys.stdin reads the whole file in

2014-08-27 Thread Peter Otten
Steven D'Aprano wrote: > I'm trying to read from stdin. Here I simulate a process that slowly > outputs data to stdout: > > steve@runes:~$ cat out.py > import time > > print "Hello..." > time.sleep(10) > print "World!" > time.sleep(10) > print "Goodbye!" In addition to what already has been sai

Re: What is acceptable as 'open-source'? [was Python vs C++]

2014-08-27 Thread Frank Millman
"Ian Kelly" wrote in message news:calwzidkro_hryamwxbk0go-w1oj6ty6myb_c5vhxb6okgol...@mail.gmail.com... > > Ugh. There seems to be no public repository, and the only source to be > found is from release-versioned tarballs, so there's apparently no > collaboration other than some forums for repor

Re: What is acceptable as 'open-source'? [was Python vs C++]

2014-08-27 Thread Chris Angelico
On Wed, Aug 27, 2014 at 5:50 PM, Frank Millman wrote: > > This is quite a timely message for me. I am inching closer to releasing a > version of my accounting software, and a lot of the above comments apply to > me as well. At present I am the only developer, and my project is not hosted > anywher

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-27 Thread Chris “Kwpolska” Warrick
On Wed, Aug 27, 2014 at 2:58 AM, Twirlip2 wrote: > It just pulls a lot of HTML and XML from the website, and extracts the > addresses of various other pages, and eventually *.WMA streams, and > hands the stream URLs over to XMPlay . > > It 'knows' what pages to visit, beca

Re: Reading from sys.stdin reads the whole file in

2014-08-27 Thread Marko Rauhamaa
Peter Otten <__pete...@web.de>: > In addition to what already has been said: you can switch off output > buffering of stdout/stderr with > > python -u out.py > > or by setting the PYTHONUNBUFFERED environment variable. Very often such externalities are not in the control of the application develo

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-27 Thread Twirlip2
On Wednesday, 27 August 2014 05:55:28 UTC+1, Chris Angelico wrote: > On Wed, Aug 27, 2014 at 1:13 PM, Rustom Mody wrote: > > On Wednesday, August 27, 2014 8:06:24 AM UTC+5:30, Chris Angelico wrote: > >> On Wed, Aug 27, 2014 at 10:58 AM, Twirlip2 wrote: > >> > > >> > So, please give me a few week

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-27 Thread Twirlip2
On Wednesday, 27 August 2014 09:12:07 UTC+1, Chris "Kwpolska" Warrick wrote: > On Wed, Aug 27, 2014 at 2:58 AM, Twirlip2 wrote: > > > > > I have plenty of ideas for improving the program, but first I have to > > re-organise the present spaghetti code in a more logical fashion. > > I have a bet

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-27 Thread Twirlip2
On Wednesday, 27 August 2014 05:03:10 UTC+1, Terry Reedy wrote: > On 8/26/2014 9:11 PM, Twirlip2 wrote: > > > Firefox can't find the server at news.gmane.com. > > sorry. .org > > This is gmane.comp.python.general Found it now, thanks. I'll take my time and learn how to use it. I hope it's OK

Re: Reading from sys.stdin reads the whole file in

2014-08-27 Thread Peter Otten
Marko Rauhamaa wrote: > Peter Otten <__pete...@web.de>: > >> In addition to what already has been said: you can switch off output >> buffering of stdout/stderr with >> >> python -u out.py >> >> or by setting the PYTHONUNBUFFERED environment variable. > > Very often such externalities are not in

PyDev 3.7.0 Released

2014-08-27 Thread Fabio Zadrozny
What is PyDev? --- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details on

Re: What is acceptable as 'open-source'? [was Python vs C++]

2014-08-27 Thread Ned Batchelder
On 8/27/14 3:50 AM, Frank Millman wrote: "Ian Kelly" wrote in message news:calwzidkro_hryamwxbk0go-w1oj6ty6myb_c5vhxb6okgol...@mail.gmail.com... Ugh. There seems to be no public repository, and the only source to be found is from release-versioned tarballs, so there's apparently no collaborat

Re: Python vs C++

2014-08-27 Thread Amirouche Boubekki
2014-08-27 8:06 GMT+02:00 Ian Kelly : > On Tue, Aug 26, 2014 at 2:12 AM, Amirouche Boubekki > wrote: > > 2014-08-26 6:02 GMT+02:00 Ian Kelly : > > > >> On Mon, Aug 25, 2014 at 4:52 AM, Amirouche Boubekki < > amirouche.boube...@gmail.com> wrote: > >> > - I am a big fan of Final Fantasy games, it

Re: Python vs C++

2014-08-27 Thread Amirouche Boubekki
2014-08-27 8:23 GMT+02:00 Ian Kelly : > On Tue, Aug 26, 2014 at 11:43 PM, alex23 wrote: > > On 26/08/2014 6:12 PM, Amirouche Boubekki wrote: > >> > >> 2014-08-26 6:02 GMT+02:00 Ian Kelly >> >: > >> > >> It would be just as easy or easier in Python, or one could

Re: This formating is really tricky

2014-08-27 Thread Seymore4Head
On Tue, 26 Aug 2014 23:46:58 -0700, Larry Hudson wrote: >On 08/25/2014 08:14 PM, Seymore4Head wrote: >[snip] >> There is lots of help built in. Trying to read all the options makes >> me realize the stuff I am working on is just the tip of the iceberg. >> When checking the help function, it is c

Re: This formating is really tricky

2014-08-27 Thread Seymore4Head
On Wed, 27 Aug 2014 09:16:43 +0200, Peter Otten <__pete...@web.de> wrote: >Seymore4Head wrote: > >> On Mon, 25 Aug 2014 18:22:35 -0400, Terry Reedy >> wrote: >> >>>On 8/25/2014 4:14 PM, Seymore4Head wrote: import random sets=3 for x in range(0, sets): pb2=random.choice([

running a python program

2014-08-27 Thread ngangsia akumbo
i have written a small scripts in python that inputs two values and prints out the sum. Ok i want to be able to install this program on a windows 8 machine and run it as a normal program. i want to be able to run it to any windows machine without necessarily installing python on that machine.

Re: running a python program

2014-08-27 Thread ngangsia akumbo
please i need some help -- https://mail.python.org/mailman/listinfo/python-list

Python programming

2014-08-27 Thread Jake
Jake-- https://mail.python.org/mailman/listinfo/python-list

Re: running a python program

2014-08-27 Thread William Ray Wing
On Aug 27, 2014, at 9:42 AM, ngangsia akumbo wrote: > i have written a small scripts in python that inputs two values and prints > out the sum. > > Ok i want to be able to install this program on a windows 8 machine and run > it as a normal program. > > i want to be able to run it to any wind

Re: running a python program

2014-08-27 Thread Chris Angelico
On Wed, Aug 27, 2014 at 11:46 PM, ngangsia akumbo wrote: > please i need some help You could try a search engine. Type what you want into it, and start reading the results. In the three minutes between your first post and your context-free and content-free nudge, you probably could have found wha

Re: PyPI password rules

2014-08-27 Thread Skip Montanaro
On Tue, Aug 26, 2014 at 11:05 AM, Skip Montanaro wrote: > I guess I could write a little program that listens to my incoming > email via IMAP. I'll have to see what that generates. Lots of Python > and bike references, no doubt. I should have something to show the world in a day or two. I have a

Re: Python programming

2014-08-27 Thread Neil D. Cerutti
On 8/27/2014 9:40 AM, Jake wrote: Jake I disagree! -- Neil Cerutti -- https://mail.python.org/mailman/listinfo/python-list

Re: Python programming

2014-08-27 Thread MRAB
On 2014-08-27 15:36, Neil D. Cerutti wrote: On 8/27/2014 9:40 AM, Jake wrote: Jake I disagree! True. Too confusing. Should be Bruce. -- https://mail.python.org/mailman/listinfo/python-list

Problem with pexpect when executing a command on a remote machine

2014-08-27 Thread Kiran kumar Venkumahanti
Hi, I am trying to execute a command on a remote machine for which I am using Python pexpect module. Iam able to connect and copy files to the remote machine but getting the following error when trying to execute commands on the remote machine. Please find the below error. ''Error sending comman

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-27 Thread Twirlip2
On Tuesday, 26 August 2014 23:55:51 UTC+1, Twirlip2 wrote: > It doesn't seem immediately obvious how to get a definitive list > of which names to avoid using (and therefore, inadvertently > 'shadowing', as I did today). > > For example, >

Re: running a python program

2014-08-27 Thread Grant Edwards
On 2014-08-27, ngangsia akumbo wrote: > i have written a small scripts in python that inputs two values and > prints out the sum. > > Ok i want to be able to install this program on a windows 8 machine > and run it as a normal program. I use py2exe for that. When I want to bundle it up with an i

Re: Python programming

2014-08-27 Thread Grant Edwards
On 2014-08-27, MRAB wrote: > On 2014-08-27 15:36, Neil D. Cerutti wrote: >> On 8/27/2014 9:40 AM, Jake wrote: >>> Jake >> >> I disagree! >> > True. Too confusing. Should be Bruce. Well, it's spelled "Jake", but it's pronounced "throat warbler mangrove" -- Grant Edwards grant.b.edw

Re: Problem with pexpect when executing a command on a remote machine

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 1:27 AM, Kiran kumar Venkumahanti wrote: > ''Error sending command: cluster config -r -a Timeout exceeded in > read_nonblocking().\n\nversion: 2.4 > ($Revision: 516 $)\ncommand: /usr/bin/ssh\nargs: [\'/usr/bin/ssh\', \'-o\', > \'ServerAliveInterval=60\', \'-o\', \'UserKnown

Re: Python programming

2014-08-27 Thread mm0fmf
On 27/08/2014 16:41, Grant Edwards wrote: Well, it's spelled "Jake", but it's pronounced "throat warbler mangrove" You're a very silly man and I'm not going to interview you. -- https://mail.python.org/mailman/listinfo/python-list

Re: [SciPy-User] Convert 3d NumPy array into 2d

2014-08-27 Thread Maximilian Albert
[source] 2014-08-27 16:08 GMT+01:00 phinn stuart : > Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy array into > (480L,

Re: What is acceptable as 'open-source'?

2014-08-27 Thread Paul Rubin
"Frank Millman" writes: > I could stick to hg (or git) but I have recently come across fossil, > and it seems ideal for my needs. Has anyone used it? I've played with it. It's incredibly impressive for such a comparatively small program. But, it's kind of niche, and even hg has become niche, e

Re: Python programming

2014-08-27 Thread Mark Lawrence
On 27/08/2014 16:09, MRAB wrote: On 2014-08-27 15:36, Neil D. Cerutti wrote: On 8/27/2014 9:40 AM, Jake wrote: Jake I disagree! True. Too confusing. Should be Bruce. How about Dolores after the first word of the Hardy book that was never published? -- My fellow Pythonistas, ask not w

Re: What is acceptable as 'open-source'?

2014-08-27 Thread Marko Rauhamaa
Paul Rubin : > "Frank Millman" writes: >> I could stick to hg (or git) but I have recently come across fossil, >> and it seems ideal for my needs. Has anyone used it? > > I've played with it. It's incredibly impressive for such a > comparatively small program. Thanks for the tip. I've been looki

Re: What is acceptable as 'open-source'? [was Python vs C++]

2014-08-27 Thread Rustom Mody
On Wednesday, August 27, 2014 5:24:40 PM UTC+5:30, Ned Batchelder wrote: > On 8/27/14 3:50 AM, Frank Millman wrote: > > "Ian Kelly" wrote in message > >> Ugh. There seems to be no public repository, and the only source to be > >> found is from release-versioned tarballs, so there's apparently no >

Convert 3d NumPy array into 2d

2014-08-27 Thread phinn stuart
Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy array into (480L, 1440L)? Thanks in the advance. phinn -- https://mail.python.org/mailman/listinfo/python-list

Re: What is acceptable as 'open-source'?

2014-08-27 Thread Rustom Mody
On Wednesday, August 27, 2014 10:44:37 PM UTC+5:30, Marko Rauhamaa wrote: > Paul Rubin : > > "Frank Millman" writes: > >> I could stick to hg (or git) but I have recently come across fossil, > >> and it seems ideal for my needs. Has anyone used it? > > I've played with it. It's incredibly impressi

The transition to multilingual programming (Nick Coughlin)

2014-08-27 Thread Terry Reedy
http://www.curiousefficiency.org/posts/2014/08/multilingual-programming.html I think this is one of the best explanations for 'why Python 3' at least as regards the unicode change. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

hg, git, fossil, ... [was Re: What is acceptable as 'open-source'? [was Python vs C++]]

2014-08-27 Thread Ethan Furman
On 08/27/2014 10:29 AM, Rustom Mody wrote: Git has won the battle Good thing there's room for more than one technology. I use hg because 1) python-dev uses hg; and 2) I understand the simple hg commands. I find git confusing, and my main uses are commit, pull, update, an occasional merge, a

Thread terminate

2014-08-27 Thread Ervin Hegedüs
Hi, what's the correct way to terminate a thread by itself? I mean: class MyThread(threading.Thread): def __init__(self, queueitem): threading.Thread.__init__(self) ... def run(self): """pseudo code below""" try: self.connect_to_database()

Re: hg, git, fossil, ... [was Re: What is acceptable as 'open-source'? [was Python vs C++]]

2014-08-27 Thread Ethan Furman
On 08/27/2014 11:51 AM, Skip Montanaro wrote: Thank God for StackOverflow. :-) +1 QotW -- https://mail.python.org/mailman/listinfo/python-list

Re: hg, git, fossil, ... [was Re: What is acceptable as 'open-source'? [was Python vs C++]]

2014-08-27 Thread Skip Montanaro
On Wed, Aug 27, 2014 at 1:26 PM, Ethan Furman wrote: > I use hg because 1) python-dev uses hg; and 2) I understand the simple hg > commands. I find git confusing, and my main uses are commit, pull, update, > an occasional merge, and a rare rollback -- not complicated stuff. The "simple hg comm

Re: Convert 3d NumPy array into 2d

2014-08-27 Thread Gary Herron
On 08/27/2014 08:08 AM, phinn stuart wrote: Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy array into (480L, 1440L)? Thanks in the advance. phinn A simple assignment into the arrays shape does it: >>> a = numpy.zeros((1,480,1440)) >>> a.shape (1, 480, 1440) >>> a.shape = (48

Re: What is acceptable as 'open-source'? [was Python vs C++]

2014-08-27 Thread Christian Gollwitzer
Am 27.08.14 09:50, schrieb Frank Millman: This is quite a timely message for me. I am inching closer to releasing a version of my accounting software, and a lot of the above comments apply to me as well. At present I am the only developer, and my project is not hosted anywhere, so I have to decid

Re: Thread terminate

2014-08-27 Thread Chris Kaynor
On Wed, Aug 27, 2014 at 11:55 AM, Ervin Hegedüs wrote: > what's the correct way to terminate a thread by itself? > To terminate the thread, the run function must exit. This can be either from an exception or a return statement. > > I mean: > > class MyThread(threading.Thread): > def __init

python string, best way to concat

2014-08-27 Thread dennisearlevans
Hi, Sorry about the simple question but I am very new to Python. Anyway, I have a function that will be used to call a stored procedure and I need to format the string with the correct number of parameter markers for the ODBC driver, fairly standard stuff. What I have works but lo

iterating over strings seems to be really slow?

2014-08-27 Thread Rodrick Brown
*I'm confused why the former function runs significantly faster when wc1() builds the hash on a single pass and doesn't waste memory of returning an array of strings? * *I would think wc2() to be slower what's going on here? * #!/usr/bin/env python s = "The black cat jump over the bigger black

Re: iterating over strings seems to be really slow?

2014-08-27 Thread Tim Chase
On 2014-08-27 16:53, Rodrick Brown wrote: > *I'm confused why the former function runs significantly faster when > wc1() builds the hash on a single pass and doesn't waste memory of > returning an array of strings? * > > *I would think wc2() to be slower what's going on here? * > > > #!/usr/bin/

Re: iterating over strings seems to be really slow?

2014-08-27 Thread Chris Kaynor
On Wed, Aug 27, 2014 at 1:53 PM, Rodrick Brown wrote: def wc1(): > word="" > m={} > for c in s: > if c != " ": > word += c > else: > if m.has_key(word): > m[word] += 1 > else: > m[word] = 1 >

Re: print to screen and file with one print statement

2014-08-27 Thread KS
Hi Mike/Ami, Can you please let me know where do I add flush(self) and get sys.stdout.flush() to work? Thanks, KS -- https://mail.python.org/mailman/listinfo/python-list

Re: python string, best way to concat

2014-08-27 Thread Dan Stromberg
On Wed, Aug 27, 2014 at 1:31 PM, wrote: > > Hi, > > Sorry about the simple question but I am very new to Python. > > Anyway, I have a function that will be used to call a stored procedure and > I need to format the string with the correct number of parameter markers for > the ODBC driver,

Re: python string, best way to concat

2014-08-27 Thread Peter Otten
dennisearlev...@gmail.com wrote: > > Hi, > > Sorry about the simple question but I am very new to Python. > > Anyway, I have a function that will be used to call a stored procedure > and I need to format the string with the correct number of parameter > markers for the ODBC driver, fa

importlib.util.find_spec()

2014-08-27 Thread Twirlip2
I want to write a function (preferably not very complicated, nor requiring deep understanding of the innards of Python) that will tell me whether a given string can be used as the name of a module (filename .py), which can be placed in the search path, without conflicting with some other use which

Re: Installing Problems - 'Key not valid for use in specified state.'

2014-08-27 Thread djhorton46
I had a problem installing Java 8 update. Got two different messages: Error 1603 and Key not valid for use in specified state. I had checked for malware and viruses beforehand and found nothing. I renamed User/Appdata/roaming/Microsoft/crypto/RSA to RSAcorrupt and tried installing again. It wor

Re: python string, best way to concat

2014-08-27 Thread MRAB
On 2014-08-27 21:31, dennisearlev...@gmail.com wrote: Hi, Sorry about the simple question but I am very new to Python. Anyway, I have a function that will be used to call a stored procedure and I need to format the string with the correct number of parameter markers for the ODBC dri

Re: python string, best way to concat

2014-08-27 Thread Tim Chase
On 2014-08-27 23:42, MRAB wrote: > How many parameters are there? len(self.param) > > Make that many placeholders and then join them together with commas: > > ', '.join(['?'] * len(self.param)) I prefer the clarity of Peter Otten's suggestion of ', '.join('?' * len(self.param)) over the mild

Re: What is acceptable as 'open-source'?

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 3:14 AM, Marko Rauhamaa wrote: > Thanks for the tip. I've been looking for the magic bullet since I had > to abandon Sun's TeamWare years back. Unfortunately, fossil seems to > suffer from the same problem as git and hg: they all consider the whole > repository to be the ve

Re: print to screen and file with one print statement

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 8:23 AM, KS wrote: > Can you please let me know where do I add flush(self) and get > sys.stdout.flush() to work? Check the dates. You're responding to a 2013 response to a 2003 post. If you have a question about something this old, it's probably best to start a new thread

Re: python string, best way to concat

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 8:44 AM, Tim Chase wrote: > On 2014-08-27 23:42, MRAB wrote: >> How many parameters are there? len(self.param) >> >> Make that many placeholders and then join them together with commas: >> >> ', '.join(['?'] * len(self.param)) > > I prefer the clarity of Peter Otten's sugge

Re: python string, best way to concat

2014-08-27 Thread Peter Otten
Tim Chase wrote: > On 2014-08-27 23:42, MRAB wrote: >> How many parameters are there? len(self.param) >> >> Make that many placeholders and then join them together with commas: >> >> ', '.join(['?'] * len(self.param)) > > I prefer the clarity of Peter Otten's suggestion of > > ', '.join('?'

Re: iterating over strings seems to be really slow?

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 6:53 AM, Rodrick Brown wrote: > def wc1(): > word="" > m={} > for c in s: > if c != " ": > word += c > else: > if m.has_key(word): > m[word] += 1 > else: > m[word] = 1 > word="" > > return(m) Your code is all buried behind HTML formatting, which makes it hard to read. But

Re: hg, git, fossil, ... [was Re: What is acceptable as 'open-source'? [was Python vs C++]]

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 4:51 AM, Skip Montanaro wrote: > The "simple hg commands" are generally not all that different (in my limited > experience) than the "simple git commands," for some definition of "simple." > Stuff like clone, init, push, pull, commit, the small number of commands you > use

Re: Working with decimals part 2

2014-08-27 Thread Seymore4Head
On Tue, 26 Aug 2014 10:46:56 +1000, alex23 wrote: >On 26/08/2014 3:55 AM, Seymore4Head wrote: >> I changed the program just a little to give myself a little practice >> with number formats. The main thing I wanted to do was make the >> decimal points line up. The problem I am having is with the

Re: PyPI password rules

2014-08-27 Thread Skip Montanaro
On Wed, Aug 27, 2014 at 9:23 AM, Skip Montanaro wrote: > I should have something to show the world in a day or two. Here's my first crack at it. https://github.com/smontanaro/polly Thanks to Chris for the idea and the name. The README.md file should have enough to get started. Basically thou

Re: PyPI password rules

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 12:53 PM, Skip Montanaro wrote: > On Wed, Aug 27, 2014 at 9:23 AM, Skip Montanaro wrote: >> >> I should have something to show the world in a day or two. > > > Here's my first crack at it. > > https://github.com/smontanaro/polly > > Thanks to Chris for the idea and the nam

Re: PyPI password rules

2014-08-27 Thread Skip Montanaro
On Wed, Aug 27, 2014 at 10:32 PM, Chris Angelico wrote: > I'm not sure I understand how your 'common' value works, though. Does > the default 0.6 mean you take the 60% most common words? Those above > the 60th percentile of frequency? Something else? > Yes, basically. A word has to pass the foll

Re: PyPI password rules

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 2:28 PM, Skip Montanaro wrote: > > On Wed, Aug 27, 2014 at 10:32 PM, Chris Angelico wrote: >> >> I'm not sure I understand how your 'common' value works, though. Does >> the default 0.6 mean you take the 60% most common words? Those above >> the 60th percentile of frequenc

Re: What is acceptable as 'open-source'?

2014-08-27 Thread Marko Rauhamaa
Chris Angelico : > On Thu, Aug 28, 2014 at 3:14 AM, Marko Rauhamaa wrote: >> parallel changes always result in a conflict that requires merging. > > This is a feature, not a problem. As far as most version control > systems are concerned, files aren't independent. However, the merge > should be t

Re: PyPI password rules

2014-08-27 Thread Skip Montanaro
On Thu, Aug 28, 2014 at 12:08 AM, Chris Angelico wrote: > Interesting. I suspect this may have issues, as you're doing these > checks progressively; something that's common in the early posts will > be weighted without regard to subsequent posts (you're requiring 100 > unique words before recordi

Re: What is acceptable as 'open-source'?

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 3:31 PM, Marko Rauhamaa wrote: > I'd venture to say files are quite independent most of the time. That's > why such merges have been facilitated to the point that negates the > "feature" you mentioned. Nobody cares to take the trouble of analyzing > the validity of automati

Re: hg, git, fossil, ...

2014-08-27 Thread Marko Rauhamaa
Skip Montanaro : > The "simple hg commands" are generally not all that different (in my > limited experience) than the "simple git commands," for some > definition of "simple." Stuff like clone, init, push, pull, commit, > the small number of commands you use day in, day out. When you get > beyond