Hey all,
I am new here and new to python too. In general new to programming .
I was working on aproblem.
and need some help.
I have a list of numbers say [2,3,5,6,10,15]
which all divide number 30.
Now i have to reduce this list to the numbers which are prime in number.
i.e.
[2,3,5]
can somebody su
En Thu, 23 Jun 2011 13:11:32 -0300, Cathy James
escribió:
I looked through this forum's archives, but I can't find a way to
search for a topic through the archive. Am I missing something?
Gmane provides a search capability also:
http://blog.gmane.org/gmane.comp.python.general
--
Gabriel G
Terry Reedy wrote:
On 6/24/2011 12:32 AM, Chetan Harjani wrote:
x=y="some string"
And we know that python interprets from left to right.
Read the doc. "5.14. Evaluation order
Python evaluates expressions from left to right. Notice that while
evaluating an assignment, the right-hand side is ev
Anurag wrote:
> My application is a web based application for both windows and Linux.
> The web part is developed using Django. So if Python does not support
> it then any support for local sytem account authentication in Django?
>
> I am looking for a common library for both Linux and Windows. An
Hello Everyone,
I'm looking a good PDF module for Python 2.x - I've never used
any PDF in Python, I don't know, what would be a good choice.
There are several PDF tool for Python - this is my problem :)
What I need:
- utf8 support
- create header and footer
- (in headers there are small images)
I took MacPython 2.6 from here:
http://www.python.org/ftp/python/2.6.6/python-2.6.6-macosx10.3.dmg
Also I downloaded Tcl/Tk from here http://www.kyngchaos.com/software/frameworks
to using the gis software Qgis
May be here the issue?
--
http://mail.python.org/mailman/listinfo/python-list
> Therefore, Windows has a "trick" for mark the file like visible, or not,
> in 32 mode. What trick?
It's called file system redirection. When you access \windows\system32
in a 32-bit process, you *actually* access \windows\syswow64, which
has entirely different files.
The same also happens for p
Take a look to reportlab:
http://www.reportlab.com/software/opensource/
Bye bye
Luca
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Jun 24, 2011 at 5:14 PM, Ethan Furman wrote:
> --> x = x['huh'] = {}
> --> x
> {'huh': {...}}
>
I would have to call that dodgy practice... unless you have a lot of
places where you need a dictionary with itself as an element, I would
avoid assignments that depend on each other.
Perhaps
Chris Torek wrote:
I can then check the now-valid
pid via os.kill(). However, it turns out that one form of "trash"
is a pid that does not fit within sys.maxint. This was a surprise
that turned up only in testing, and even then, only because I
happened to try a ridiculously large value as one o
Hello,
In my program I can set to run after system startup (it writes path to
Software\Microsoft\Windows\CurrentVersion\Run) but when normal user is
logged in my application crashes. I must right click on app an choose
"Run As Admin" and then everything works.
How can I do it to write to registry
hello,
On Fri, Jun 24, 2011 at 12:37:40AM -0700, mando wrote:
> Take a look to reportlab:
>
> http://www.reportlab.com/software/opensource/
thanks, I'll check it out,
a.
--
http://mail.python.org/mailman/listinfo/python-list
Now its all clear. Thanks
@ethan .. ur example is really scary.
I didnt understand ur example fully although.
See this is what i take it as:
x=x['huh']={}
>first python checks check that there are two = operators.
>so it evaluates the RHS(since for = it is RHS to LHS) experession of right
most (wh
miamia wrote:
> Hello,
>
> In my program I can set to run after system startup (it writes path to
> Software\Microsoft\Windows\CurrentVersion\Run) but when normal user is
> logged in my application crashes. I must right click on app an choose
> "Run As Admin" and then everything works.
>
> How
sajuptpm wrote:
> How get all users belongs to a group using python ldap module.
There are several ways of storing grouping information in a LDAP server.
I assume the groups are normal group entries of object class 'groupOfNames'
which is most commonly used. Such an entry has the attribute 'membe
Hi,
Thanks for reply.
dn: cn=My-Group-1, ou=Groups, o=CUST
equivalentToMe: cn=TDS7034,ou=Internal PCA,o=CUST
objectClass: groupOfNames <
objectClass: top
objectClass: swarePointers
ACL: 2#entry#[Root]#member
cn: My-Group-1
member: cn=AJP2203,ou=Internal PCA,o=CUST
member: cn=AZE9632,o
I am using Openldap (openldap 2.3.43-12.el5_5.2 and openldap.i386
0:2.3.43_2.2.29-12.el5_6.7)
--
http://mail.python.org/mailman/listinfo/python-list
Michael Hrivnak wrote:
The latest libcurl includes the CURLOPTS_RESOLVE option
(http://curl.haxx.se/libcurl/c/curl_easy_setopt.html) that will do
what you want. It may not have made its way into pycurl yet, but you
could just call the command-line curl binary with the --resolve
option. This fea
Hi all ,
May be I'm just asking a silly/old question .
I have some open web APIs which i can use , on it I want to develop an
desktop application , probably cross platform but mostly I'm aiming at
*unix platforms .
I've got no experience in programming desktop application , but thats
not a
--- User
cn=AJP2203,ou=Internal PCA,o=CUST has group memberships
to the following Groups:
groupMembership: cn=My-Group-1,ou=Groups,o=CUST
groupMembership: cn=My-Group-2,u=Groups,o=CUST
groupMembership: cn=My-Group-3,ou=Groups,o=CUST
On Fri, 2011-06-24 at 15:55 +0530, saurabh verma wrote:
> Hi all ,
> May be I'm just asking a silly/old question .
> I have some open web APIs which i can use , on it I want to develop an
> desktop application , probably cross platform but mostly I'm aiming at
> *unix platforms .
> I've got no
Adam Tauno Williams wrote:
On Fri, 2011-06-24 at 15:55 +0530, saurabh verma wrote:
Hi all ,
May be I'm just asking a silly/old question .
I have some open web APIs which i can use , on it I want to develop an
desktop application , probably cross platform but mostly I'm aiming at
*unix plat
sajuptpm wrote:
> --- User
>
> cn=AJP2203,ou=Internal PCA,o=CUST has group memberships
> to the following Groups:
> groupMembership: cn=My-Group-1,ou=Groups,o=CUST
> groupMembership: cn=My-Group-2,u=Groups,o=CUST
> groupMembership: cn=My-Group-3,ou=Groups,o=
On Fri, Jun 24, 2011 at 4:24 PM, Anthony Papillion wrote:
> Hi Saurabh,
>
> I'm an experienced developer with quite a few years invested in both
> desktop and web development. But up until a few weeks ago, I'd really
> never touched Python much less developed a desktop app in it.
>
> I can tell yo
Hello,
I,m new in Python, I want to design and train a binary neural network
classifiers in Python.
This model of neural network should make preprocessing expert system model
to deal with the original telecommunications alarms. *The model can be seen
as the simplest kind of feed-**forward neura
On Jun 24, 12:27 am, Terry Reedy wrote:
> > 1) Can I tell Executable.py to share Data with ModuleTest.py?
>
> After the import is complete, yes.
> import ModuleTest
> ModuleTest.Data = Data
>
> This works if the use of Data is inside a function that is not called
> during import, not if the use of
You might also want to have a look at Pisa ( http://www.xhtml2pdf.com/
) . It's based on reportlab but might suit you better.
--
http://mail.python.org/mailman/listinfo/python-list
Adam Tauno Williams wrote:
> On Fri, 2011-06-24 at 15:55 +0530, saurabh verma wrote:
>> Hi all ,
>> May be I'm just asking a silly/old question .
>> I have some open web APIs which i can use , on it I want to develop an
>> desktop application , probably cross platform but mostly I'm aiming at
>>
saurabh verma wrote:
>
> Quick question : Is creating jazzy UI feasible with python + gtk ? like
> round shaped corners , color schemes etc etc.
Button shapes and colors are generally done in themes and luckily people using
QT/gtk2 are allowed to change themes themselves which makes that the app
I prefer QT and you have qt-creator:
http://qt.nokia.com/products/developer-tools
and PyQT/SIP:
http://www.riverbankcomputing.co.uk/software/pyqt/intro
IMHO you will get a better looking thing than with gtk2.
Thanks Aho , Will surely look into it .
--
http://mail.python.org/mailman/listinf
J.O. Aho wrote:
saurabh verma wrote:
Quick question : Is creating jazzy UI feasible with python + gtk ? like
round shaped corners , color schemes etc etc.
Button shapes and colors are generally done in themes and luckily people using
QT/gtk2 are allowed to change themes themselves whi
On 24-Jun-11 03:01 AM, kaustubh joshi wrote:
Hey all,
I am new here and new to python too. In general new to programming .
I was working on aproblem.
and need some help.
I have a list of numbers say [2,3,5,6,10,15]
which all divide number 30.
Now i have to reduce this list to the numbers which ar
WORK FROM HOME - EARN $15,000 WEEKLY ( PART TIME JOBS)
REGISTER NOW & START EARNING AT
http://www.work8home.com
--
http://mail.python.org/mailman/listinfo/python-list
You might try writing the boolean function is_prime(n) for almost any n.
There was a recent discussion on this topic.
Since the guy is "new in programming", I complete the answer, just in
case. Using the function is_prime(n),
FIRST POSSIBILITY :
new_list=[]
for n in old_list:
if is_pr
On 2011-06-24, Gabriel Genellina wrote:
> En Thu, 23 Jun 2011 13:11:32 -0300, Cathy James
> escribi?:
>
>> I looked through this forum's archives, but I can't find a way to
>> search for a topic through the archive. Am I missing something?
>
>
> Gmane provides a search capability also:
> http:/
On Fri, Jun 24, 2011 at 8:01 AM, kaustubh joshi wrote:
> Hey all,
> I am new here and new to python too. In general new to programming .
> I was working on aproblem.
> and need some help.
> I have a list of numbers say [2,3,5,6,10,15]
> which all divide number 30.
> Now i have to reduce this list
In <34110eed-96bc-499f-9a4e-068f2720f...@h12g2000pro.googlegroups.com> sajuptpm
writes:
> dn: cn=My-Group-1,ou=Groups,o=CUST
> member: cn=AJP2203,ou=Internal PCA,o=CUST
> member: cn=AZE9632,ou=Internal PCA,o=CUST
> member: cn=BTC4979,ou=Internal PCA,o=CUST
> * I have group definition in LDAP se
Hi,
I am getting following error message while unziping a .zip file. Any
help or idea is highly appreciated.
Error message>>>
Traceback (most recent call last):
File "C:\Zip_Process\py\test2_new.py", line 15, in
outfile.write(z.read(name))
IOError: (22, 'Invalid argument')
On Fri, 24 Jun 2011 10:55:52 -0400, Ahmed, Shakir wrote:
> Hi,
>
>
>
> I am getting following error message while unziping a .zip file. Any
> help or idea is highly appreciated.
How do you know it is when unzipping the file? Maybe it is, or maybe it
isn't. The line giving the error has *two*
On Jun 24, 2011, at 10:55 AM, Ahmed, Shakir wrote:
> Hi,
>
>
>
> I am getting following error message while unziping a .zip file. Any
> help or idea is highly appreciated.
>
>
>
> Error message>>>
>
> Traceback (most recent call last):
>
> File "C:\Zip_Process\py\test2_new.py", line 15,
On Jun 24, 6:45 am, "neil.suffi...@gmail.com"
wrote:
> You might also want to have a look at Pisa (http://www.xhtml2pdf.com/
> ) . It's based on reportlab but might suit you better.
There's more to the story. As with many things, the answer is, "it
depends".
In this case, there are so many varia
On Fri, 24 Jun 2011 10:55:52 -0400, Ahmed, Shakir wrote:
> Hi,
>
>
>
> I am getting following error message while unziping a .zip file. Any
> help or idea is highly appreciated.
How do you know it is when unzipping the file? Maybe it is, or maybe it
isn't. The line giving the error has *two*
-Original Message-
From: python-list-bounces+shahmed=sfwmd@python.org
[mailto:python-list-bounces+shahmed=sfwmd@python.org] On Behalf Of
Philip Semanchuk
Sent: Friday, June 24, 2011 11:18 AM
To: Lista-Comp-Lang-Python list
Subject: Re: unzip problem
On Jun 24, 2011, at 10:55 AM,
Ahmed, Shakir wrote:
Hi,
I am getting following error message while unziping a .zip file. Any
help or idea is highly appreciated.
Error message>>>
Traceback (most recent call last):
File "C:\Zip_Process\py\test2_new.py", line 15, in
outfile.write(z.read(name))
IOError: (22, '
Ahmed, Shakir wrote:
> The problem is happening when it is coming to write option.
>
> The * is not the real name of the zip file, I just hide the name.
Please don't waste our time by showing us fake code that doesn't do what you
say it does.
You said that "The script is here", but that was not
Not sure, this is the right place, redirect me if it's not.
I was curious about the functionoverloading(
http://svn.python.org/view/sandbox/trunk/overload/) and was trying to do a
svn checkout of the branch and failed. Is it restricted access for even
checkout? How do i get read-only access?
>Chris Torek wrote:
>> I can then check the now-valid
>> pid via os.kill(). However, it turns out that one form of "trash"
>> is a pid that does not fit within sys.maxint. This was a surprise
>> that turned up only in testing, and even then, only because I
>> happened to try a ridiculously large
Ahmed, Shakir wrote:
Thanks for your help and really appreciate your time.
I changed the code as you mentioned and here it is:
fn = open('T:\\applications\\tst\\py\\Zip_Process\\Zip\\myzip.zip',
'rb')
z = zipfile.ZipFile(fn)
for name in z.namelist():
data = z.read(name)
ptr = 0
On 2011.06.24 03:48 AM, Duncan Booth wrote:
> http://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script
Heh. On Windows 7, using 'runas' for the operation in os.startfile()
gives me a normal UAC prompt.
Is there any way to ask for elevation from a subprocess.Popen
Chris Rebert wrote:
> Netiquette comment: Please avoid SHOUTING
>
The brilliant beam of light that first thought
capitilized words amounted to shouting
never programmed cobol, fortran, or pl/1
in the 1960s or 1970s :-)
How or why this behavior was cultivated
and contin
Ahmed, Shakir wrote:
Thanks once again and you are right I am trying to unzip in the network
share drive. here is the script now: If I am doing any wrong. :
## code start here
import zipfile
import os
import time
dir1 = "T:\\applications\\tst\\py\\Zip_Process"
test = '%s/shp'%dir1
os.chdir(test)
In Cousin Stanley
writes:
> How or why this behavior was cultivated
> and continues to spread is mind boggling
The behavior of writing in all caps, or the behavior of equating such
writing with shouting?
--
John Gordon A is for Amy, who fell down the stairs
gor...@pan
On Fri, Jun 24, 2011 at 12:14:27AM -0700, Ethan Furman wrote:
> The example given to me when I had this question:
>
> --> x = x['huh'] = {}
> --> x
> {'huh': {...}}
>
>
> As you can see, the creation of the dictionary is evaluated, and
> bound to the name 'x'; then the key 'huh' is set to the
Tycho Andersen wrote:
On Fri, Jun 24, 2011 at 12:14:27AM -0700, Ethan Furman wrote:
The example given to me when I had this question:
--> x = x['huh'] = {}
--> x
{'huh': {...}}
As you can see, the creation of the dictionary is evaluated, and
bound to the name 'x'; then the key 'huh' is set
-Original Message-
From: Ethan Furman [mailto:et...@stoneleaf.us]
Sent: Friday, June 24, 2011 3:47 PM
To: Ahmed, Shakir
Cc: Python
Subject: Re: unzip problem
Ahmed, Shakir wrote:
> Thanks once again and you are right I am trying to unzip in the
network
> share drive. here is the script no
On Fri, Jun 24, 2011 at 01:13:08PM -0700, Ethan Furman wrote:
> Tycho Andersen wrote:
> >On Fri, Jun 24, 2011 at 12:14:27AM -0700, Ethan Furman wrote:
> >>The example given to me when I had this question:
> >>
> >>--> x = x['huh'] = {}
> >>--> x
> >>{'huh': {...}}
> >>
> >>
> >>As you can see, the
Ahmed, Shakir wrote:
Here is the final code that worked to unzip a large file in the network
drive.
CHUNK_SIZE = 10 * 1024 * 1024
fh = open('T:\\applications\\tst\\py\\Zip_Process\\Zip\\myzip.zip',
'rb')
z = zipfile.ZipFile(fh)
for name in z.namelist():
fn = open(name, 'wb')
ptr = 0
Hi,
I am looking for an easy way to do significant figure calculations in
python (which I want to use with a class that does unit calculations).
Significant figure calculations should have the semantics explained,
e.g., here:
http://chemistry.about.com/od/mathsciencefundamentals/a/sigfigures.htm
In article <20110624200618.gk6...@point.cs.wisc.edu>,
Tycho Andersen wrote:
> Yes, I understand that, but I guess I don't understand *why* things
> are done that way. What is the evaluation order principle at work
> here? I would have expected:
>
> tmp = {}
> x['huh'] = tmp # NameEror!
>
> That
On Fri, 24 Jun 2011 13:05:41 -0700, Harold wrote:
> Hi,
>
> I am looking for an easy way to do significant figure calculations in
> python (which I want to use with a class that does unit calculations).
> Significant figure calculations should have the semantics explained,
> e.g., here:
> http://
On Fri, Jun 24, 2011 at 4:46 PM, Steven D'Aprano
wrote:
> Really? It works for me.
>
import decimal
D = decimal.Decimal
decimal.getcontext().prec = 2
D('32.01') + D('5.325') + D('12')
> Decimal('49')
I'm curious. Is there a way to get the number of significant digits
for
In article
<09cae8bf-4b1f-40ea-af36-4ba130c41...@m18g2000vbl.googlegroups.com>,
mando wrote:
> I took MacPython 2.6 from here:
>
> http://www.python.org/ftp/python/2.6.6/python-2.6.6-macosx10.3.dmg
>
>
> Also I downloaded Tcl/Tk from here
> http://www.kyngchaos.com/software/frameworks
> to
On 6/24/2011 4:06 PM, Tycho Andersen wrote:
tmp = {}
x['huh'] = tmp # NameEror!
That is, the right hand sides of assignments are evaluated before the
left hand sides. That is (somehow?) not the case here.
You are parsing "a = b = c" as "a = (b = c)" which works in a language
in which assignm
On Fri, Jun 24, 2011 at 01:24:24PM -0700, Ned Deily wrote:
> In article <20110624200618.gk6...@point.cs.wisc.edu>,
> Tycho Andersen wrote:
> > Yes, I understand that, but I guess I don't understand *why* things
> > are done that way. What is the evaluation order principle at work
> > here? I woul
hello,
On Fri, Jun 24, 2011 at 09:59:17AM -0700, Cameron Laird wrote:
> Hegedüs Ervin, it's quite likely that ReportLab will be a good
> technical fit
> for you.
it's a good news :)
> Are you in a position to pay licensing fees for advanced
> features?
no :(
> Do you have any requirements to *m
On 6/24/2011 7:30 AM, Gnarlodious wrote:
On Jun 24, 12:27 am, Terry Reedy wrote:
1) Can I tell Executable.py to share Data with ModuleTest.py?
After the import is complete, yes.
import ModuleTest
ModuleTest.Data = Data
This works if the use of Data is inside a function that is not called
dur
On Fri, Jun 24, 2011 at 05:02:00PM -0400, Terry Reedy wrote:
> On 6/24/2011 4:06 PM, Tycho Andersen wrote:
>
> >tmp = {}
> >x['huh'] = tmp # NameEror!
> >
> >That is, the right hand sides of assignments are evaluated before the
> >left hand sides. That is (somehow?) not the case here.
>
> You are
On 6/24/2011 2:01 PM, anand jeyahar wrote:
Not sure, this is the right place, redirect me if it's not.
I was curious about the
functionoverloading(http://svn.python.org/view/sandbox/trunk/overload/)
and was trying to do a svn checkout of the branch and failed. Is it
restricted access for even ch
John Gordon wrote:
> In Cousin Stanley
> writes:
>
>> How or why this behavior was cultivated
>> and continues to spread is mind boggling
>
> The behavior of writing in all caps,
> or the behavior of equating such writing with shouting ?
The latter
equating writing in all c
En Fri, 24 Jun 2011 11:33:23 -0300, Grant Edwards
escribió:
On 2011-06-24, Gabriel Genellina wrote:
En Thu, 23 Jun 2011 13:11:32 -0300, Cathy James
escribi?:
I looked through this forum's archives, but I can't find a way to
search for a topic through the archive. Am I missing something?
In article <20110624210835.gl6...@point.cs.wisc.edu>,
Tycho Andersen wrote:
> On Fri, Jun 24, 2011 at 01:24:24PM -0700, Ned Deily wrote:
> > In article <20110624200618.gk6...@point.cs.wisc.edu>,
> > Tycho Andersen wrote:
> > > Yes, I understand that, but I guess I don't understand *why* things
On 2011.06.24 03:48 AM, Duncan Booth wrote:
> http://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script
Heh. On Windows 7, using 'runas' for the operation in os.startfile()
gives me a normal UAC prompt.
Is there any way to ask for elevation from a subprocess.Popen
On Fri, 24 Jun 2011 19:17:29 +, Cousin Stanley wrote:
> Chris Rebert wrote:
>
>> Netiquette comment: Please avoid SHOUTING
>
> The brilliant beam of light that first thought capitilized words
> amounted to shouting never programmed cobol, fortran, or pl/1 in the
> 1960s or 1970s .
Chris Torek writes:
> But again, this is why I would like to have the ability to use some
> sort of automated tool, where one can point at any given line of
> code and ask: "what exceptions do you, my faithful tool, believe
> can be raised as a consequence of this line of code?"
“Why, any except
On Sat, Jun 25, 2011 at 7:02 AM, Terry Reedy wrote:
> If I have ever used this sort of multiple assignment, it has been for simple
> unambiguous things like "a = b = 0".
For which it's extremely useful. Initialize a whole bunch of variables
to zero... or to a couple of values:
minfoo=minbar=minq
Jerry Hill wrote:
> I'm curious. Is there a way to get the number of significant digits
> for a particular Decimal instance? I spent a few minutes browsing
> through the docs, and didn't see anything obvious. I was thinking
> about setting the precision dynamically within a function, based on
>
Tycho Andersen writes:
> On Fri, Jun 24, 2011 at 01:24:24PM -0700, Ned Deily wrote:
> > http://docs.python.org/py3k/reference/simple_stmts.html#assignment-statements
>
> Perhaps I'm thick, but (the first thing I did was read the docs and) I
> still don't get it. From the docs:
>
> "An assignment
On 6/24/2011 5:08 PM, Tycho Andersen wrote:
"An assignment statement evaluates the expression list (remember that
this can be a single expression or a comma-separated list, the latter
yielding a tuple) and assigns the single resulting object to each of
the target lists, from left to right."
Th
The Lion version of the OS on the Mac comes with Python 2.7 installed, but it
is in /System/Library/Frameworks/..., and this area is not writable by third
party apps.
So is there a consensus on what apps that typically install under the Python
site-packages directory should do in this situation
> > I tried to modify the DecimalContext (e.g. getcontext().prec = 2) but
> > that did not lead to the correct behavior.
>
> Really? It works for me.
You are right, I did something wrong when attempting to set the
precision.
And the trick with rounding the decimal with the unary + is neat.
It's th
Hi,
Why people want print() instead of print str? That's not a big deal
and the old choice is more natural. Anyone has some clue?
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
On Fri, 24 Jun 2011 19:17:29 +, Cousin Stanley wrote:
Chris Rebert wrote:
Netiquette comment: Please avoid SHOUTING
The brilliant beam of light that first thought capitilized words
amounted to shouting never programmed cobol, fortran, or pl/1 in the
1960
In
pipehappy writes:
> Why people want print() instead of print str? That's not a big deal
> and the old choice is more natural. Anyone has some clue?
Because the new Python uses print(). print "str" is the old way.
--
John Gordon A is for Amy, who fell down the stairs
gor
On 6/24/2011 10:39 PM, pipehappy wrote:
Hi,
Why people want print() instead of print str? That's not a big deal
and the old choice is more natural. Anyone has some clue?
print as a function instead of a statement is consistent with input as a
function, can be overridden with custom versions,
On Sat, Jun 25, 2011 at 10:25 AM, Ben Finney wrote:
> No. The answer is *still* “why, any exception at all”. The name
> ‘os.read’ could be re-bound at run-time to any object at all, so a code
> checker that you “point at any given line of code” can't know what the
> name will be bound to when that
John Gordon wrote:
> In
> pipehappy writes:
>
>> Why people want print() instead of print str? That's not a big deal
>> and the old choice is more natural. Anyone has some clue?
>
> Because the new Python uses print(). print "str" is the old way.
I think you missed the point of the question
In article
<2ffee45b-8987-4fb4-8c8b-c1eed728e...@glegroupsg2000goo.googlegroups.com
>,
JKPeck wrote:
> The Lion version of the OS on the Mac comes with Python 2.7 installed, but it
> is in /System/Library/Frameworks/..., and this area is not writable by third
> party apps.
>
> So is there a
* miamia (Fri, 24 Jun 2011 01:08:55 -0700 (PDT))
> In my program I can set to run after system startup (it writes path to
> Software\Microsoft\Windows\CurrentVersion\Run)
Under HKLM oder HKCU? The path itself is of course irrelevant.
> but when normal user is logged in my application crashes.
Wi
* Andrew Berg (Fri, 24 Jun 2011 14:02:54 -0500)
> On 2011.06.24 03:48 AM, Duncan Booth wrote:
> > http://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script
> Heh. On Windows 7, using 'runas' for the operation in os.startfile()
> gives me a normal UAC prompt.
That
89 matches
Mail list logo