Re: threading bug in strptime

2015-10-06 Thread Akira Li
Larry Martell writes: > We have been trying to figure out an intermittent problem where a > thread would fail with this: > > AttributeError: 'module' object has no attribute '_strptime' > > Even though we were importing datetime. After much banging our heads > against the wall, we found this: > >

Re: reg multiple login python

2015-10-06 Thread harirammanohar159
On Thursday, 1 October 2015 12:35:01 UTC+5:30, hariramm...@gmail.com wrote: > Hi All, > > Is there anyway i can login to remote servers at once and do the activity, i > can do one by one using for loop.. > > Thanks in advance. please respond...actually i am in need of this multiprocessing.. --

Re: Finding Blank Columns in CSV

2015-10-06 Thread Jaydip Chakrabarty
On Tue, 06 Oct 2015 19:25:12 +0100, MRAB wrote: > On 2015-10-06 18:23, Jaydip Chakrabarty wrote: >> On Tue, 06 Oct 2015 14:33:51 +0200, Peter Otten wrote: >> > [snip] >> >> I downloaded gmail contacts in google csv format. There are so many >> columns. So I was trying to create another csv with th

building Demo/embed on Mac OS 10.10 from source: configure args?

2015-10-06 Thread vaporbleep
I'm trying to build the embedding demo (Demo/embed in the source directory) After configuring with $ ./configure --enable-framework MACOSX_DEPLOYMENT_TARGET=10.10 And calling "make" in the root source directory to build python.exe I then change directory to Demo/embed and edit LIBS and LDFLAGS

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Ben Finney
Terry Reedy writes: > On 10/6/2015 6:45 AM, Ben Finney wrote: > > Ben Finney writes: > > > How can I convince ‘print’, everywhere throughout a module, that it > > should coerce its arguments using ‘unicode’? > > Use Python 3. I am only half joking. Switching to unicode instead > of bytes as t

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Ben Finney
Peter Otten <__pete...@web.de> writes: > Have a look at PyFile_WriteObject in Objects/fileobject.c. > As I understand the code it basically does > > if isinstance(obj) and stream.encoding is not None: > s = obj.encode(stream.encoding)) > else: > s = str(obj) > stream.write(s) So as I unde

Re: Trouble running

2015-10-06 Thread Terry Reedy
On 10/6/2015 10:56 AM, John Gordon wrote: In =?utf-8?Q?Cameroni123_=E2=84=A2?= writes: Hi I have recently installed python on windows 10 and I'm trying to save in order to run the module and I cant I don't know why, could you please help? Cameron Which version of Python. How installed.

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Terry Reedy
On 10/6/2015 6:45 AM, Ben Finney wrote: Ben Finney writes: How can I convince ‘print’, everywhere throughout a module, that it should coerce its arguments using ‘unicode’? Use Python 3. I am only half joking. Switching to unicode instead of bytes as the default text type fixed numerous

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Peter Otten
Ben Finney wrote: >> I don't think this is possible with the print statement, but the >> print() function can be replaced with anything you like: > > > Hmm. I am more looking for something that doesn't involve replacing > ‘print’, but rather to hook into whatever it uses to coerce the type of >

Re: Pyserial and Ubuntu Linux kernel 3.13.0-65-generic

2015-10-06 Thread Laura Creighton
In a message of Tue, 06 Oct 2015 21:31:02 -, Grant Edwards writes: >On 2015-10-03, Laura Creighton wrote: > >> https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1501345 >> seems to be about a whole lot of serial ports to me, not just FTDI > >We just ran into the OP's problem wh

Re: Pyserial and Ubuntu Linux kernel 3.13.0-65-generic

2015-10-06 Thread Rob Gaddi
On Tue, 06 Oct 2015 21:31:02 +, Grant Edwards wrote: > On 2015-10-03, Laura Creighton wrote: > >> https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/ +bug/1501345 >> seems to be about a whole lot of serial ports to me, not just FTDI > > We just ran into the OP's problem where I wo

Re: Pyserial and Ubuntu Linux kernel 3.13.0-65-generic

2015-10-06 Thread Grant Edwards
On 2015-10-03, Laura Creighton wrote: > https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1501345 > seems to be about a whole lot of serial ports to me, not just FTDI We just ran into the OP's problem where I work: Ununtu kernel updated and all serial ports stopped working (it is

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Ben Finney
Laura Creighton writes: > Hmm, now that I read the six document again > @six.python_2_unicode_compatible Peter Otten <__pete...@web.de> writes: > I don't think this is possible with the print statement, but the > print() function can be replaced with anything you like: Hmm. I am more lookin

Re: Finding Blank Columns in CSV

2015-10-06 Thread MRAB
On 2015-10-06 18:23, Jaydip Chakrabarty wrote: On Tue, 06 Oct 2015 14:33:51 +0200, Peter Otten wrote: [snip] I downloaded gmail contacts in google csv format. There are so many columns. So I was trying to create another csv with the required columns. Now when I tried to open the gmail csv fil

Re: Finding Blank Columns in CSV

2015-10-06 Thread Peter Otten
Jaydip Chakrabarty wrote: > On Tue, 06 Oct 2015 14:33:51 +0200, Peter Otten wrote: > >> Jaydip Chakrabarty wrote: >> >>> On Tue, 06 Oct 2015 01:34:17 +1100, Chris Angelico wrote: >>> On Tue, Oct 6, 2015 at 1:06 AM, Tim Chase wrote: > That way, if you determine by line 3 that your

Re: Finding Blank Columns in CSV

2015-10-06 Thread Jaydip Chakrabarty
On Tue, 06 Oct 2015 14:33:51 +0200, Peter Otten wrote: > Jaydip Chakrabarty wrote: > >> On Tue, 06 Oct 2015 01:34:17 +1100, Chris Angelico wrote: >> >>> On Tue, Oct 6, 2015 at 1:06 AM, Tim Chase >>> wrote: That way, if you determine by line 3 that your million-row CSV file has no blan

Re: packaging code with compiled libraries

2015-10-06 Thread Tim
On Tuesday, October 6, 2015 at 5:51:48 AM UTC-4, Oscar Benjamin wrote: > On 5 October 2015 at 20:43, Tim wrote: > > > > I have a package I want to share but have a question about packaging. > > > > Mostly the package is pure python code, but it also requires some binary > > libraries (*.so, *.dll

Re: python3.5 + reportlab + windows again

2015-10-06 Thread Robin Becker
On 06/10/2015 16:14, Robin Becker wrote: I can run all of the reportlab tests OK under ubuntu 14.04 amd65 with the latest python 3.5 (built using configure make dance). I guess I have to think about creating a debug build of python 3.5 and or one or more extensions. Does anyone k

python3.5 + reportlab + windows again

2015-10-06 Thread Robin Becker
I can run all of the reportlab tests OK under ubuntu 14.04 amd65 with the latest python 3.5 (built using configure make dance). However, when I try to do the same with windows 7 x64 & VS2015 as the compiler I am getting strange issues. Basically at some point in the run python pops up a dialo

Re: Finding Blank Columns in CSV

2015-10-06 Thread MRAB
On 2015-10-06 12:24, Jaydip Chakrabarty wrote: On Tue, 06 Oct 2015 01:34:17 +1100, Chris Angelico wrote: On Tue, Oct 6, 2015 at 1:06 AM, Tim Chase wrote: That way, if you determine by line 3 that your million-row CSV file has no blank columns, you can get away with not processing all million

Re: Trouble running

2015-10-06 Thread John Gordon
In =?utf-8?Q?Cameroni123_=E2=84=A2?= writes: > Hi I have recently installed python on windows 10 and I'm trying to > save in order to run the module and I cant I don't know why, could > you please help? > Cameron We need more details to help you. What program are you using to try to save? Is

pls help me install 3.5 and 2.7.10

2015-10-06 Thread rajesh thanu
[14C0:1718][2015-10-06T20:09:57]i001: Burn v3.10.0.1823, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Users\raj\Downloads\python-3.5.0-webinstall.exe [14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable 'ActionLikeInstalling' to value 'Installing' [14C0:1718][2015-10-06T20:09:5

Re: Trouble running

2015-10-06 Thread Emile van Sebille
On 10/5/2015 11:06 AM, Cameroni123 ™ wrote: Hi I have recently installed python on windows 10 and I’m trying to save in order to run the module and I cant I don’t know why, could you please help? you might find the following helpful: http://www.cs.utexas.edu/~mitra/bytes/start.html emile

Re: Pyarmor, guard your python scripts

2015-10-06 Thread Josef Pktd
On Monday, October 5, 2015 at 11:27:58 PM UTC-4, Ian wrote: > On Oct 5, 2015 4:27 PM, "Ben Finney" wrote: > > > > > > Josef Pktd writes: > > > > > > > related > > > > > > Care to give us a summary of what that is, and describe what you think > > > is the relevant point? > > Following the

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Peter Otten
Ben Finney wrote: > Ben Finney writes: > >> In Python 2.7, I am seeing this behaviour for ‘print’:: >> >> Python 2.7.10 (default, Sep 13 2015, 20:30:50) >> [GCC 5.2.1 20150911] on linux2 >> Type "help", "copyright", "credits" or "license" for more >> information. >> >>> from

Re: python and ARM memory types

2015-10-06 Thread voxner
The main intent to use python was because it was easier to code the algorithms. Also I was hoping to reuse the parallel algorithms specifically iterative ones where we have some sort of control thread that distributes data between the threads. Now I am planning to have 2 different set of kernel wi

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Laura Creighton
Hmm, now that I read the six document again @six.python_2_unicode_compatible seems exactly what you are asking for ... https://pythonhosted.org/six/ Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Laura Creighton
I think the thing you want to converse is your stringIO not your print. I think you do this using six.stringIO https://pythonhosted.org/six/ But I have only read the doc, not done this in practice. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Finding Blank Columns in CSV

2015-10-06 Thread Peter Otten
Jaydip Chakrabarty wrote: > On Tue, 06 Oct 2015 01:34:17 +1100, Chris Angelico wrote: > >> On Tue, Oct 6, 2015 at 1:06 AM, Tim Chase >> wrote: >>> That way, if you determine by line 3 that your million-row CSV file has >>> no blank columns, you can get away with not processing all million >>> ro

PyDev 4.4.0 Released

2015-10-06 Thread Fabio Zadrozny
Release Highlights: --- * Improved PyDev Package Explorer to give more information when all elements are filtered. * Code completion improvements: when a parameter is typed in the docstring, assigning it to an instance gives proper code-completion results when accessin

Re: Finding Blank Columns in CSV

2015-10-06 Thread Jaydip Chakrabarty
On Tue, 06 Oct 2015 01:34:17 +1100, Chris Angelico wrote: > On Tue, Oct 6, 2015 at 1:06 AM, Tim Chase > wrote: >> That way, if you determine by line 3 that your million-row CSV file has >> no blank columns, you can get away with not processing all million >> rows. > > Sure, although that effecti

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Ben Finney
Ben Finney writes: > In Python 2.7, I am seeing this behaviour for ‘print’:: > > Python 2.7.10 (default, Sep 13 2015, 20:30:50) > [GCC 5.2.1 20150911] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from __future__ import unicode_literals >

Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Ben Finney
Howdy all, In Python 2.7, I am seeing this behaviour for ‘print’:: Python 2.7.10 (default, Sep 13 2015, 20:30:50) [GCC 5.2.1 20150911] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from __future__ import unicode_literals >>> from __future

Re: packaging code with compiled libraries

2015-10-06 Thread Oscar Benjamin
On 5 October 2015 at 20:43, Tim wrote: > > I have a package I want to share but have a question about packaging. > > Mostly the package is pure python code, but it also requires some binary > libraries (*.so, *.dll, *.dylib). I want to bundle these libs so users don't > have to compile. The pac

Re: python and ARM memory types

2015-10-06 Thread Laura Creighton
It is not clear to me if any of the tools that come with volutility are going to be of any use, but I figure it is worth a look, at any rate. https://github.com/volatilityfoundation/volatility I seem to have replied directly, at any rate I mentioned this yesterday but don't see it in the mailing

Re: python and ARM memory types

2015-10-06 Thread Jorgen Grahn
On Mon, 2015-10-05, dieter wrote: > voxner@gmail.com writes: >> ... >> But how do I specify (streaming,write-combining,write-back) memory >> types in python ? Is there a library that I can use ? I am thinking of >> programming some fixed memory space [...] > > Python is quite a high level pro

Re: reg multiple login python

2015-10-06 Thread harirammanohar159
On Thursday, 1 October 2015 12:35:01 UTC+5:30, hariramm...@gmail.com wrote: > Hi All, > > Is there anyway i can login to remote servers at once and do the activity, i > can do one by one using for loop.. > > Thanks in advance. Hi, Anyone suggest... -- https://mail.python.org/mailman/listinf

Re: Downloading Python

2015-10-06 Thread Daniel Bradburn
Hi Sharon, Here are the links for the Python 3.4.2 downloads: https://www.python.org/downloads/release/python-342/#download Regards 2015-10-06 6:49 GMT+02:00 Sharon MOrine : > Hello: > Can you please tell me how to download python 3.4.2 (or .3)? I am new to > programming and the website is

Re: Downloading Python

2015-10-06 Thread Tom Hodder
Hi Sharon, > Sharon MOrine wrote: > I am new to programming and the website is confusing and my eyesight isn't that great. Welcome to Python! Announcement mailing lists, like this one, are typically used by python package maintainers to publicize the availability of new versions of their softwa

Re: Trouble running

2015-10-06 Thread kennethg
On Tuesday, 6 October 2015 15:09:54 UTC+8, Cameroni123 (tm) wrote: > Hi I have recently installed python on windows 10 and I'm trying to save in > order to run the module and I cant I don't know why, could you please help? > Cameron > > Sent from Mail for Windows 10 I presume you wrote your co

Re: doc-generation tool

2015-10-06 Thread Ben Finney
writes: > I am confused about to much possible tools and conventions for > doc-strings and the doc-generating tools using it. Thank you for taking seriously the job of documenting your software! > My code isn't about a package interface. It is just a simple > application I want I readable docum

Re: packaging code with compiled libraries

2015-10-06 Thread Tim Golden
On 05/10/2015 20:43, Tim wrote: > I have a package I want to share but have a question about packaging. > > Mostly the package is pure python code, but it also requires some binary > libraries (*.so, *.dll, *.dylib). I want to bundle these libs so users don't > have to compile. The package will

Trouble running

2015-10-06 Thread Cameroni123 ™
Hi I have recently installed python on windows 10 and I’m trying to save in order to run the module and I cant I don’t know why, could you please help? Cameron Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

doc-generation tool

2015-10-06 Thread c.buhtz
I am confused about to much possible tools and conventions for doc-strings and the doc-generating tools using it. My code isn't about a package interface. It is just a simple application I want I readable documentation for. I have the following needs - in-code doc-string should be readable for h