Re: We will be moving to GitHub

2016-01-04 Thread m
W dniu 03.01.2016 o 01:33, Marko Rauhamaa pisze: > Teamware didn't have to pick any of them since Teamware's commits were > done per individual files. The repository didn't have a commit history. > > Thus, Teamware was equivalent to Hg/Git with each file treated as an > independent repository. >

Re: GitHub's “pull request” is proprietary lock-in

2016-01-04 Thread m
W dniu 03.01.2016 o 05:43, Ben Finney pisze: > That and other vendor-locked workflow aspects of GitHub makes it a poor > choice for communities that want to retain the option of control over > their processes and data. I'm also afraid that Github will make to git the same thing as Google did to Ja

Re: We will be moving to GitHub

2016-01-04 Thread Marko Rauhamaa
m : > W dniu 03.01.2016 o 01:33, Marko Rauhamaa pisze: >> Teamware didn't have to pick any of them since Teamware's commits were >> done per individual files. The repository didn't have a commit history. >> >> Thus, Teamware was equivalent to Hg/Git with each file treated as an >> independent repo

Re: raise None

2016-01-04 Thread Rustom Mody
On Monday, January 4, 2016 at 11:23:24 AM UTC+5:30, Rustom Mody wrote: > On Monday, January 4, 2016 at 10:49:39 AM UTC+5:30, Steven D'Aprano wrote: > > On Fri, 1 Jan 2016 10:27 am, Ben Finney wrote: > > > > > If I could have the traceback continue into the C code and tell me the > > > line of C co

Re: GitHub's “pull request” is proprietary lock-in

2016-01-04 Thread Michael Torrie
On 01/04/2016 03:21 AM, m wrote: > W dniu 03.01.2016 o 05:43, Ben Finney pisze: >> That and other vendor-locked workflow aspects of GitHub makes it a poor >> choice for communities that want to retain the option of control over >> their processes and data. > > I'm also afraid that Github will make

What is the fastest way to do 400 HTTP requests using requests library?

2016-01-04 Thread livemsn22
So what is the fastest way to make 400 HTTP requests using "requests" library and also using tor proxy? Best regards -- https://mail.python.org/mailman/listinfo/python-list

Re: GitHub's "pull request" is proprietary lock-in

2016-01-04 Thread Josef Pktd
On Monday, January 4, 2016 at 12:41:32 PM UTC-5, Michael Torrie wrote: > On 01/04/2016 03:21 AM, m wrote: > > W dniu 03.01.2016 o 05:43, Ben Finney pisze: > >> That and other vendor-locked workflow aspects of GitHub makes it a poor > >> choice for communities that want to retain the option of contr

Re: We will be moving to GitHub

2016-01-04 Thread Thomas 'PointedEars' Lahn
Marko Rauhamaa wrote: > Well, Git and Mercurial are not all that bad as long as only a single > person is working on the repository at any given time and you have a > strictly linear version history. I cannot confirm your observations(?) for Git. There was a time when three of four people of ou

Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-04 Thread Steven D'Aprano
On Tue, 5 Jan 2016 07:50 am, livems...@gmail.com wrote: > So what is the fastest way to make 400 HTTP requests using "requests" > library and also using tor proxy? Since this will be I/O bound, not CPU bound, probably use separate threads. Push the 400 requests into a queue, then create N threa

Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-04 Thread Ian Kelly
On Mon, Jan 4, 2016 at 4:38 PM, Steven D'Aprano wrote: > On Tue, 5 Jan 2016 07:50 am, livems...@gmail.com wrote: > >> So what is the fastest way to make 400 HTTP requests using "requests" >> library and also using tor proxy? > > > Since this will be I/O bound, not CPU bound, probably use separate

Re: GitHub's “pull request” is proprietary lock-in

2016-01-04 Thread m
W dniu 04.01.2016 o 18:41, Michael Torrie pisze: >> Decade ago, I had plenty of friends on my jabber contacts list. Next, >> > Google made it's talk compatible with jabber, then my friends slowly >> > migrated to gtalk, because if they used gmail anyway, then why not use >> > it also for jabber? >>

Is there a way importing a string object?

2016-01-04 Thread jfong
For example, name = "test" # test.py is a module's file import name Regards, Jach -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a way importing a string object?

2016-01-04 Thread Ian Kelly
On Mon, Jan 4, 2016 at 5:49 PM, wrote: > For example, > > name = "test" # test.py is a module's file > import name Yes, use the importlib.import_module function. -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a way importing a string object?

2016-01-04 Thread Ben Finney
jf...@ms4.hinet.net writes: > For example, (Please make the body of your message complete. The “Subject” field should be a summary of your message's subject, and may not be read as the first line of your message.) > name = "test" # test.py is a module's file > import name The standard library

Is '*args' useful in this example code?

2016-01-04 Thread Robert
Hi, I find an example code on wrap at this link: http://stackoverflow.com/questions/308999/what-does-functools-wraps-do Here is the code: def logged(func): def with_logging(*args, **kwargs): print func.__name__ + " was called" return func(*args, **kwargs) return w

Re: Is there a way importing a string object?

2016-01-04 Thread jfong
jf...@ms4.hinet.net at 2016/1/5 UTC+8 8:49:56AM wrote: Thanks, Ian and Ben. This forum is really a good place for learning Python. I am glad I had join in. To Ben, > (Please make the body of your message complete. The "Subject" field > should be a summary of your message's subject, and may not b

Re: Is '*args' useful in this example code?

2016-01-04 Thread Ben Finney
Robert writes: > I understand now, but I feel the args usage is weird. I don't see any way > to use *args and **kwargs in above code. What is your opinion on it? Can you show example code that you would expect, and specifically what about the actual code doesn't match what you expect? -- \

Re: Is '*args' useful in this example code?

2016-01-04 Thread Robert
On Monday, January 4, 2016 at 9:26:47 PM UTC-5, Ben Finney wrote: > Robert writes: > > > I understand now, but I feel the args usage is weird. I don't see any way > > to use *args and **kwargs in above code. What is your opinion on it? > > Can you show example code that you would expect, and sp

Re: Is '*args' useful in this example code?

2016-01-04 Thread Ben Finney
Robert writes: > On Monday, January 4, 2016 at 9:26:47 PM UTC-5, Ben Finney wrote: > > Can you show example code that you would expect, and specifically what about > > the actual code doesn't match what you expect? > > Excuse me for the incomplete info previously. > If I call it with > a = f(3)

Re: Is '*args' useful in this example code?

2016-01-04 Thread Arif Khokar
On 01/04/2016 09:16 PM, Robert wrote: Hi, I find an example code on wrap at this link: http://stackoverflow.com/questions/308999/what-does-functools-wraps-do Here is the code: def logged(func): def with_logging(*args, **kwargs): print func.__name__ + " was called"

Re: Need help - How to identify the cell display format?

2016-01-04 Thread Ezhilarasan Chandrasekar
I tried the following, from openpyxl.reader.excel import load_workbook book = load_workbook(filename='transactions.xlsx') sheet = book.get_sheet_by_name('transactions') print sheet.cell("A12").style.number_format print sheet.cell("A13").style.number_format But there is some problem with the load

Re: Where are we in the Python 3 transition?

2016-01-04 Thread John Ladasky
I switched to Python 3 between three and four years ago, I think. I was actually eager to make the switch, as I could see the value of clean Unicode support and lazy evaluation. I had to wait until Matplotlib supported Py3, then I changed. -- https://mail.python.org/mailman/listinfo/python-li