the semantics meaning of
such kind of notation?
Thanks,
/Adam
--
http://mail.python.org/mailman/listinfo/python-list
Host OS:Ubuntu 10.04 LTS
Guest OS:Windows XP Pro SP3
I am able to open port COM4 with Terminal emulator.
So, what can cause PySerial to generate the following error ...
C:\Wattcher>python wattcher.py
Traceback (most recent call last):
File "wattcher.py", line 56, in
ser.open()
"John Nagle" wrote in message
news:jse604$1cq$1...@dont-email.me...
> On 6/26/2012 9:12 PM, Adam wrote:
>> Host OS:Ubuntu 10.04 LTS
>> Guest OS:Windows XP Pro SP3
>>
>>
>> I am able to open port COM4 with Terminal emulator.
>>
>>
"Paul" wrote in message
news:jseu9c$sp3$1...@dont-email.me...
> Adam wrote:
>> "John Nagle" wrote in message
>> news:jse604$1cq$1...@dont-email.me...
>>> On 6/26/2012 9:12 PM, Adam wrote:
>>>> Host OS:Ubuntu 10.04 LTS
>>>&
"Paul" wrote in message
news:jsfatv$djt$1...@dont-email.me...
> Adam wrote:
>> "Paul" wrote in message
>> news:jseu9c$sp3$1...@dont-email.me...
>>> Adam wrote:
>>>> "John Nagle" wrote in message
>>>> news:jse604
"Paul" wrote in message
news:jsfhv2$ta9$1...@dont-email.me...
> Adam wrote:
>
>>
>> This is a tough one.
>
> Try
>
>handle -a > allhand.txt
>
> Then open the allhand.txt with Notepad and look for interesting entries.
>
> **
"Grant Edwards" wrote in message
news:jsftah$bb5$1...@reader1.panix.com...
> On 2012-06-27, Adam wrote:
>
>> The Python script needed a call to ser.close() before ser.open() in
>> order to work.
>
> IOW, the port opened OK, but when you tried to open it a seco
"Temia Eszteri" wrote in message
news:ra2nu7h75720i75ijhabg12dngrab75...@4ax.com...
> On Wed, 27 Jun 2012 22:18:59 + (UTC), Grant Edwards
> wrote:
>
>>> Can you post a small example showing what you're doing?
>>
>>The best way to get help is to write as small a program as possible
>>that de
"Grant Edwards" wrote in message
news:jsg4o8$o4p$1...@reader1.panix.com...
> On 2012-06-27, Adam wrote:
>>
>>> Actually, I believe someone in an earlier thread in the newsgroup or
>>> elsewhere pointed out that serial ports automatically open under
>>
"Grant Edwards" wrote in message
news:jshotj$s55$1...@reader1.panix.com...
> On 2012-06-28, Adam wrote:
>
>> Obviously pySerial considers the serial port open
>
> Because it's already been opened by the Python program.
>
>> and will not open an a
"Roel Schroeven" wrote in message
news:mailman.1618.1340910525.4697.python-l...@python.org...
> Temia Eszteri schreef:
>> Actually, I believe someone in an earlier thread in the newsgroup or
>> elsewhere pointed out that serial ports automatically open under
>> Windows. I'd have to look it back
"Jonathan N. Little" wrote in message
news:ncqc7j$na1$1...@dont-email.me...
> Adam wrote:
>> "Adam" wrote in message
>> news:ncprqb$tl9$1...@news.albasani.net...
>>>
>>> "Jonathan N. Little" wrote in message
>>> news:ncp
quest for SSL
3) SSL your socket to the FTP server
4) Continue on your merry FTP way.
-adam
--
http://mail.python.org/mailman/listinfo/python-list
How is best to extract word strings from a
line = infile.readline()
I wish to quickly check the first word of
each line of a text file.
Indeed, How do I break a lineinput() line
into component words (separate by spaces etc) ?
Should I be looking at;
Re Parser Slice StringIO ?
Any help
Ouch. That is simple with .split
I must have got confused amongst
slice re etc. searching searching.
Thanks folks. Painless.
--
http://mail.python.org/mailman/listinfo/python-list
Please help me.
How do you clear the screen and then display a number with an enlarged font
size (about 300).
Adam.
--
http://mail.python.org/mailman/listinfo/python-list
"BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote:
>
>> Please help me.
>> How do you clear the screen and then display a number with an enlarged
>> font
>> size (about 300).
>
"Adam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote:
>>
>>> Please help me.
>>>
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Adam" <[EMAIL PROTECTED]> wrote:
>
>> So we came up with the idea of using a random number generator to
>> generate numbers from 0 to 36 and display them in large f
Thanks Fredrik,
I got your program running (with a couple of tweaks) with just a quarter of
an hour to spare before using it at our happy hour yesterday.
The old ladies loved it.
I can now adapt it for bingo.
Thanking you
Adam.
--
http://mail.python.org/mailman/listinfo/python-list
I know Java and C very well, and I've also decided to learn python. I
am currently coding a web based massively multiplayer Nation Simulation
with Python(that's how I learn languages, I undertake fairly large
projects.) My friend and I have written a lot of it, and we started a
project on sourcefor
Try
con.connect()
before the first putrequest
-adam
--
http://mail.python.org/mailman/listinfo/python-list
l for the apache user.
-adam
--
http://mail.python.org/mailman/listinfo/python-list
images via a
form in Flask, but that’s another story).
Happy coding
Adam
--
https://mail.python.org/mailman/listinfo/python-list
Host OS:Ubuntu Desktop 14.04 LTS / Unity
System crashed while using PyCharm / Python3.
Booting takes forever and stuck at the purple screen with
the Ubuntu logo and the five dots cycling.
How to fix?
--
https://mail.python.org/mailman/listinfo/python-list
"Adam" wrote in message
news:ncikss$tks$1...@news.albasani.net...
>
> Host OS:Ubuntu Desktop 14.04 LTS / Unity
>
> System crashed while using PyCharm / Python3.
> Booting takes forever and stuck at the purple screen with
> the Ubuntu logo and the five dots cyc
"Adam" wrote in message
news:ncp8r1$ofd$1...@news.albasani.net...
>
> "Adam" wrote in message
> news:ncikss$tks$1...@news.albasani.net...
>>
>> Host OS:Ubuntu Desktop 14.04 LTS / Unity
>>
>> System crashed while using PyCharm / Pyth
"Dirk T. Verbeek" wrote in message
news:56f03080$0$5924$e4fe5...@news.xs4all.nl...
> Op 21-03-16 om 17:51 schreef Adam:
>> "Adam" wrote in message
>> news:ncikss$tks$1...@news.albasani.net...
>>>
>>> Host OS:Ubuntu Desktop 14.04 L
"Dirk T. Verbeek" wrote in message
news:56f03080$0$5924$e4fe5...@news.xs4all.nl...
> Op 21-03-16 om 17:51 schreef Adam:
>> "Adam" wrote in message
>> news:ncikss$tks$1...@news.albasani.net...
>>>
>>> Host OS:Ubuntu Desktop 14.04 L
"Jonathan N. Little" wrote in message
news:ncpjj0$7ug$1...@dont-email.me...
> Adam wrote:
>> There ought to be a way to just reinstall the graphics subsystem rather
>> than
>> an all-or-none installation approach.
>
> Yes you can. Did it for a borked in
"Adam" wrote in message
news:ncprqb$tl9$1...@news.albasani.net...
>
> "Jonathan N. Little" wrote in message
> news:ncpjj0$7ug$1...@dont-email.me...
>> Adam wrote:
>>> There ought to be a way to just reinstall the graphics subsystem rather
>&
"Adam" wrote in message
news:ncpev8$51d$1...@news.albasani.net...
>
> "Dirk T. Verbeek" wrote in message
> news:56f03080$0$5924$e4fe5...@news.xs4all.nl...
>> Op 21-03-16 om 17:51 schreef Adam:
>>> "Adam" wrote in message
>>&
"Jonathan N. Little" wrote in message
news:ncqc7j$na1$1...@dont-email.me...
> Adam wrote:
>> "Adam" wrote in message
>> news:ncprqb$tl9$1...@news.albasani.net...
>>>
>>> "Jonathan N. Little" wrote in message
>>> news:ncp
"Jonathan N. Little" wrote in message
news:ncqd2d$pab$1...@dont-email.me...
> Adam wrote:
>> Sure glad I did not reinstall Ubuntu. Whew!!
>
> Unless you really-really-really screw things up, you usually do not have
> to. Linux is not Windows ;-) Even if you h
"Big Bad Bob" wrote in message
news:mp6dnavahbnh6gzlnz2dnuu7-y_nn...@earthlink.com...
> On 03/21/16 17:23, Adam so wittily quipped:
>> "Adam" wrote in message
>> news:ncprqb$tl9$1...@news.albasani.net...
>>>
>>> "Jonathan N. Little
"Jonathan N. Little" wrote in message
news:ncrg2v$jo$2...@dont-email.me...
> Adam wrote:
>> Thanks, but why fix if it ain't broke?:-)
>
> No reason to.
Yup, I agree.
>
> --
> Take care,
>
> Jonathan
> ---
> LIT
"Adam" wrote in message
news:ncikss$tks$1...@news.albasani.net...
>
> Host OS:Ubuntu Desktop 14.04 LTS / Unity
>
> System crashed while using PyCharm / Python3.
> Booting takes forever and stuck at the purple screen with
> the Ubuntu logo and the fiv
Is in here maybe someone who speak Polish?
I would like to write application witch looks like this
http://linuxiarze.pl/obrazy/internet1/ceni1.png
I'm looking for some libs, tutorials, or other informations.
I'm searching this informations for python3.
adam
--
https://mail.python.o
Hej, no właśnie niechodzi o przeniesienie do okienek tylko jeśli znasz taki
program jak np fk dla dos-a to chodzi mi o taki efekt. Czyli aplikacja
konsolowa z pseudo okienkami.
Adam
jacek pozniak wrote:
> adam wrote:
>
>> Is in here maybe someone who speak Polish?
>>
Dennis Lee Bieber wrote:
> On Wed, 07 Jan 2015 22:17:09 +0100, adam
> declaimed the following:
>
>>Is in here maybe someone who speak Polish?
>>
>>I would like to write application witch looks like this
>>http://linuxiarze.pl/obrazy/internet1/ceni1.png
>>
Emil Oppeln-Bronikowski wrote:
> On Wed, Jan 07, 2015 at 10:17:09PM +0100, adam wrote:
>> Is in here maybe someone who speak Polish?
>
> Mówię, a raczej piszę.
>
>> I'm looking for some libs, tutorials, or other informations.
>
> This is terminal applicatio
Emil Oppeln-Bronikowski wrote:
> On Thu, Jan 08, 2015 at 05:18:07PM +0100, adam wrote:
>
>> I just learn python.
>
> We all do. It's a constant process.
>
>> If you write in Polish it will be easier for me to
>> explain any problem, because my English is
_name)
print "imported %s" % mod_name
except:
print "NameError: %s" % error_value.args[0]
pass
-adam
--
http://mail.python.org/mailman/listinfo/python-list
Where should a py newbie start to do some 2D graphs on screen ?
PythonGraphApi,
Gato, looks interesting
pygraphlib,
matplotlib,
is there a best native Python place to start ?
--
http://mail.python.org/mailman/listinfo/python-list
jbchua wrote:
> Hello everybody.
>
> I am an Electrical Engineering major and have dabbled in several
> languages such as Python, C, and Java in my spare time because of my
> interest in programming. However, I have not done any practical
> programming because I have no idea where to get started.
I'm using Pyro to develop a distribuited system
running my integration test suite I've found a strange
behaviour
it seems that whenever I have a failed resolve or unregister on
a name server, the name server acts normally during its life
span, but when I shut it down... something remains up...
Check out the os.path (http://docs.python.org/lib/module-os.path.html)
module. It has the functions you are looking for.
-adam
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the reply, will work with this tomorrow.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 4, 9:52 am, 13 <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> I have been searching the internet for python version 0.9.0 sources
> which had been posted to alt.sources list, but without any luck. Maybe
> someone has it available somewhere ?
>
> Thanks,
> Martins
http://www.python.org/downloa
Sorry jumped the gun a little there. Is this what you are looking for?
http://codespeak.net/download/py/py-0.9.0.zip
--
http://mail.python.org/mailman/listinfo/python-list
())
self.logfile.write(i + "\n" + "\n" + "Violating File
#: " + str(index) + "\n" + "Shorten by: " + str(dif) + "\n" + "\n" +
"-" + "\n")
self.txtBoxvi.insert(tk.END, i + "\n")
self.labVi2.configure(text=txt)
self.logfile.close()
def quitEvent(self):
raise SystemExit
if __name__ == "__main__":
app = Theapp()
app.mainWindow.mainloop()
###End Code###
TIA
Adam
--
http://mail.python.org/mailman/listinfo/python-list
scale. So checking a directory on a loop for accesses
won't work.
Maybe some way to monitor the Open Files section of Computer
Management?
I check through Tim Golden's site but nothing jumped out at me.
Any pointers would be great.
Thanks,
Adam
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 7, 5:09 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> Adam wrote:
> > I want to know if it possible to tell when a file is opened. However I
> > don't want it to be the last access time. I want to know how many
> > times a file opened so I can generate statis
On Apr 7, 8:02 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> Adam wrote:
> > On Apr 7, 5:09 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> > > Adam wrote:
> > > > I want to know if it possible to tell when a file is opened. However I
> &g
nt "test"
test
#-End Code---
There are also function like len(). Usage:
#-Python Code-
>>> len(aVar)
3
>>> len(aVar[0])
4
#-End Code---
Hope this helps.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
Hey,
This will get your IP address:
###Code
print socket.gethostbyaddr(socket.gethostname())
('compname', [], ['192.168.1.2'])
End Code
If you are wanting to to communicate over the internet you will have
to get the IP of you rounter. So you will have to either find
over the list and use the type() function to work out
what each entry and choose what to do with it.
type() works like so:
###Code###
>>> a = ["test", 1.25, "test2"]
>>> if type(a[2]) == str:
print "a string"
a string
>>>
###End Code###
Adam
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 26, 9:28 pm, [EMAIL PROTECTED] wrote:
> i am trying to use python to walk thru each subdirectory from a top
> directory. Here is my script:
>
> savedPagesDirectory = "/home/meryl/saved_pages/data"
>
> dir=open(savedPagesDirectory, 'r')
>
> for file in dir:
> if (isdir(file)):
>
Whoops, the first bit of my reply ended up in the quoted text. See
above.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
f, base):
pass
def fillboxes(self):
pass
def quitEvent(self):
raise SystemExit
app = Theapp()
app.mainWindow.mainloop()
##End Code###
I have only posted the code relevant to the GUI.
TIA
Adam
--
http://mail.python.org/mailman/listinfo/python-list
1. Get PDFCreator
2. Install
3. Set as default printer
4. Have all excel files in same folder
5. Select all excel files
6. Right click
7. Select Print
8. Save Each PDF to a location
9. ???
10. Profit
Never done it with Adobe Writer. I'm a cheapskate.
Regards,
Adam
--
http://mail.pytho
On Feb 28, 9:13 pm, Adonis Vargas <[EMAIL PROTECTED]>
wrote:
> Adam wrote:
>
>
>
> > I think my main questions are:
> > 1. How can I get the Window to be sized the way I want it?
> > 2. How can I get the Scrollbars to fill the side of the text box
> >
oxes(self):
Pass
def quitEvent(self):
raise SystemExit
app = Theapp()
app.mainWindow.mainloop()
#END#
Regards,
Adam
--
http://mail.python.org/mailman/listinfo/python-list
("ConsoleWindowClass",NULL);
ShowWindow(stealth,0);
So I start my script and that is will be run in the background and I can
trick with "hotkeys" in WINAMP. I do not worry for a new one window. :-) I
hope you understand me because my english is not perfect.
Regards,
Adam
--
http://mai
Does anybody have experiences of Python and ILOG Server (distribution
framework) integration?
I need to access to a server application "exposed" through ILOG Server.
Thanks
Vieri
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to run an external program in my code using
os.system('exename -exearg') but the exe has an "&" in it so windows thinks
it's two commands any way around this?
Adam
--
http://mail.python.org/mailman/listinfo/python-list
I am using Python 2.5, and I would like to write a decorator (or using
some other elegant, declarative approach) to mangle the name of
function in a class. I would like to be able to have two methods
declared with the same name, but one of them will have a decorator (or
whatever) that will change
Thanks, Andrew. I'm trying to accomplish something with a
metaprogramming flavor, where, for the convenience of the programmer
and the clarity of code, I'd like to have a decorator or some other
mechanism do twiddling behind the scenes to make a class do something
it wouldn't normally do.
Here's
On Mar 17, 1:49 pm, Aaron Brady wrote:
> You would need a unique attribute to look for on values in the
> dictionary, which means you'd need to detect what functions you are
> renaming; possibly by using a decorator to mark them. (Untested:)
>
> class X( metaclass= M ):
> @mark( 'A' )
> def
On Mar 18, 10:33 am, "J. Cliff Dyer" wrote:
> You might be interested in redefining __getattribute__(self, attr) on
> your class. This could operate in conjunction with the hash tables
> (dictionaries) mentioned by andrew cooke. i.e. (untested code):
>
> class C(object):
> def __init__(self)
On Mar 18, 11:11 am, "R. David Murray" wrote:
> I don't have any wisdom on the metaclass/decorator stuff, but what
> about slightly reformulating the interface? Instead of having the
> programmer type, eg:
>
> @GET
> def foo(self): pass
>
> @POST
> def foo(self): pass
>
> have the
Hi, everyone, I am using /usr/share/system-config-language/
language_gui.py in Python.
For some reason I have to bypass the firewall using a proxy. I read
the urllib reference and set http_proxy="my proxy". But it didn't
work. Is there anyway that we can set the proxy?
--
http://mail.python.org/ma
Hi, I am using a script written in Python. For some reasons I should
pass the fireware by proxy setting. But it seems not work when I set
the 'http_proxy' 'ftp_proxy' environment variable.
I also expored 'HTTP_PROXY' 'FTP_PROXY', but the problem remained.
How can I set proxy for it to run the scrip
>>> import httplib
>>> h = httplib.HTTPConnection("www.google.ca")
>>> h.connect()
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Python24\lib\httplib.py", line 627, in connect
raise socket.error, msg
error: (10061, 'Connection refused')
>>> h2 = httplib.HTTPConnection("m
s much MX cr*p as it can - but
it's a tall order!
I've [even] used Joomla for pretty simple non-"blog" sites simply for
the remote admin and the search functions. It really is best suited
for the more "newsy" community sites. It's definitely worth a look at,
IMHO.
Adam.
--
http://mail.python.org/mailman/listinfo/python-list
Am looking at
http://sourceforge.net/projects/scipy/files/scipy/0.8.0/
and I wonder which is the binary to install on WinXP ?
As pointed to by this page, http://www.scipy.org/Download
All I can see on that sourceforge page are the huge
python2.6 and python2.7 Powerpacks, at 43megs or so
each.
honmac-
> sig mailing list. (http://mail.python.org/mailman/listinfo/pythonmac-
> sig)
>
> Mark
Thanks. I also determined after the fact that universalsdk was the
problem, but I didn't know how to fix it. Unfortunately, it turns out
what you identified was a transcription
On Sep 2, 11:31 am, JonathanB wrote:
> For the hiring managers, if the job post said
> "CS Major" in the requirements, would you consider a liberal arts
> major at all?
I got my English Writing degree in 1990, and I have been a software
engineer ever since. Landing the first job was very difficul
On Sep 2, 12:52 pm, JonathanB wrote:
> Any other tips?
I'm probably going to come off as very old school, but give yourself a
good and thorough education in data structures and algorithms. You
might never be called on to actually code a quick sort, merge sort,
heap sort, doubly-linked list or tr
tarting to have some users wanting to
use python3 and others sticking to python2 so I'd like to accommodate
them both if possible.
Cheers
Adam
--
http://mail.python.org/mailman/listinfo/python-list
8'))
>
> I've run it with 2.6, 2.7, 3.2, and 3.3.
Thanks that's very helpful, I hadn't realised that .readfp() had been
deprecated.
Cheers
Adam
--
http://mail.python.org/mailman/listinfo/python-list
rint "A"
class B(A):
def __init__(self, arg):
super(B, self).__init__(arg)
Is this correct? As the result, whenever you wanted to refer to a
method in parent class, super() functions has to be called. This seems
inefficient.
How to refer to a field defined in parent class?
eone could tell me how to send and receive these commands with Python.
Perhaps if you were feeling generous and wanted to write a bit of sample code,
sending the "Get Printer Status" command and receiving the response (page 17 of
the PDF) would be perfect to get me on my way.
T
On Wednesday, August 29, 2012 2:45:17 AM UTC-4, Tim Roberts wrote:
> Which operating system are you using? If you are on Windows, then the
>
> operating system has already loaded a printer driver for this device.
>
>
> The libusb or libusbx libraries can be used to talk to USB devices. There
On Wednesday, August 29, 2012 4:09:49 PM UTC-4, Dennis Lee Bieber wrote:
>
> Don't the commands require an character? "\x1BA" (or
>"\x1B\x41")
>
> OTOH, if the is issued behind the scenes,
I'm not sure which esc char it is asking for, I don't think libusb is providing
its own,
On Wednesday, August 29, 2012 6:56:16 PM UTC-4, Dennis Lee Bieber wrote:
>
> BUT you do give a possible clue. Is the OP using a 3.x Python where
>
> strings are Unicode -- in which case the above may need to be explicitly
>
> declared as a "byte string" rather than text (unicode) string.
>
On Wednesday, August 29, 2012 10:07:54 PM UTC-4, Dennis Lee Bieber wrote:
> On Wed, 29 Aug 2012 16:45:10 -0700 (PDT), "Adam W."
>
> I'm a tad curious if using the notation
>
>
>
> b'\x1bA'
>
>
>
> without the .en
On Thursday, August 30, 2012 12:55:14 AM UTC-4, Dennis Lee Bieber wrote:
>
> How many bytes did it claim to send?
>
11, which is what I expected. But I changed the byte value to 16 (because I
was having trouble getting single digit hex values working in the command) and
sent this command:
On Mon, Sep 24, 2012 at 5:55 PM, Oscar Benjamin
wrote:
> There are many situations where a little bit of attribute access magic is a
> good thing. However, operations that involve the underlying OS and that are
> prone to raising exceptions even in bug free code should not be performed
> implicitl
On Tue, Oct 2, 2012 at 9:23 AM, Demian Brecht wrote:
> I don't use them anymore, but I'm curious about others opinions on this
> list...
>
Interesting question. I think they haven't been useful for representing
the real world as everyone hoped, but are pretty good for organizing
structures withi
On Wed, Oct 3, 2012 at 1:26 PM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> C++ namespaces are useful for encapsulating related objects within a
> single file, subdividing the global namespace without using classes.
> Python has modules, but they come in separate files.
>
> Us
ve built them as command line apps. I've tried uninstalling python 3
> > and reinstalling it to no avail. What did I do, and how can I fix it?
>
> >
>
> > Thanks,
>
> > Adam
>
> > --
>
>
>
> IDLE uses Tkinter. If you don't have Tk installed, just
On Thu, Oct 25, 2012 at 9:04 PM, Terry Reedy wrote:
> On 10/25/2012 9:46 PM, mambokn...@gmail.com wrote:
>
> a = [float('nan'), 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
> a
>>
>> [nan, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>
> a.index(float('nan'))
>>
>> Traceback (most recent call last):
On Mon, Nov 19, 2012 at 10:14 AM, wrote:
> I have three scripts that I would like written, they are designed to do the
> following:
>
> Backup.py – Zip a folder and store it on amazon S3 using BOTO with the date
> and time as the folder name.
>
> Restore.py – Grab a file from S3 and download it
buteError: 'module' object has no attribute '__file__'
>>>
Can anyone offer any suggestions as to what is going wrong with the
above code or offer an alternative way of determining the OpenSSl
version using python-2.6?
Cheers
Adam
--
http://mail.python.org/mailman/listinfo/python-list
Hi
Is this possible at all?
Cheers
Adam
On Mon, Jan 23, 2012 at 14:01, Adam Mercer wrote:
> Hi
>
> I'm trying to write a script that determines the version of OpenSSL
> that python is linked against, using python-2.7 this is easy as I can
> use:
>
> import ss
...' constructs with
> 'try ... except...' constructs.
My code already has a try... except block that tries the
ssl.OPENSSL_VERSION approach first but I wanted to have a fallback
method that works with python-2.6. Looks like I may need to hardcode
certain things.
Cheers
Adam
--
h
s that ssh and python would use the same version of openssl:
> not guaranteed, but seems like a "reasonable" assumption to me.
Hmm, I like that idea. Thanks for the suggestion.
Cheers
Adam
--
http://mail.python.org/mailman/listinfo/python-list
t; openssl_version = libssl.SSLeay()
> print "%.9X" % openssl_version
>
> This gives me 0009080FF which corresponds to 0.9.8o release which is
> what I have installed in Debian Squeeze.
Thanks, that looks useful.
Cheers
Adam
--
http://mail.python.org/mailman/listinfo/python-list
ython modules. Non-thread-safe object instances is
usually fine. Object construction needs to be thread-safe, but that's
also the default behavior. You need not worry about it unless you're
doing very unusual things.
Plainly, most of the time you shouldn't need to do anything to
1 - 100 of 1390 matches
Mail list logo