Hello sir/ma’am
I was trying to uninstall python with older version although popup with
uninstall successful could be seen multiple times but the icon is still
there.
So please assist me for that
Thanks & Regards
Shiva Goswami
--
https://mail.python.org/mailman/listinfo/python-list
0
Aim:-
I would want to set python path programmatic in my project. So that, all other
directories files can be imported without any issues.
Problem statement:-
I used to add all the folders & sub-folders in environment variables under
PYTHONPATH but this has two constrains.
1, Any new fold
Hi,
We are hosting the python interpreter(version 2.7.13) in a C application
and calling a python function that has some calls to opencv-python
functions (Representative code fragments are below). When the python
function is called in the main interpreter, it works fine. However, when
the it is ca
gt;
Also help worked when I switched to plain integer as you mentioned below but
looks like it didn't save it.
Btw - I am pretty new to python hence asking these questions.
Thanks again!
Prasad Joshi.
-Original Message-
From: eryksun [mailto:eryk...@gmail.com]
Sent: Thursday,
Hi,
I have installed the "Windows x86-64 executable
installer<https://www.python.org/ftp/python/3.5.0/python-3.5.0-amd64.exe>" on
my desktop but I cannot get help ( ) or help (string) command working.
What could be an issue?
Thanks!
Prasad Joshi.
--
https://mail.python.org/
On Tuesday, July 28, 2015 at 12:56:29 AM UTC-7, Michael Ströder wrote:
> Prasad Katti wrote:
> > I am writing a command line tool in python to generate one time
> > passwords/tokens. The command line tool will have certain sub-commands like
> > --generate-token and --list-all-
I am writing a command line tool in python to generate one time
passwords/tokens. The command line tool will have certain sub-commands like
--generate-token and --list-all-tokens for example. I want to restrict access
to certain sub-commands. In this case, when user tries to generate a new token
f python so they can
handle the above. I don't think, that is possible or a good idea. But I
would like to know, if there are any other approaches.
Thanks and Regards
Lalitha Prasad,
--
https://mail.python.org/mailman/listinfo/python-list
cyt...@m.allo.ws wrote:
> Hello All,
>
> I really hate Windows, and I have only intermittent access to Windows
> machines right now.
>
> When I install Python 2.7 on Windows using the MSI installer, it definitely
> does not modify the PATH
> variable. So I modify the PATH variable myself as fol
Mark Janssen wrote:
> 1) It tried to make Object the parent of every class. No one's close
> enough to God to make that work.
> 2) It didn't make dicts inherit from sets when they were added to Python.
> 3) It used the set literal for dict, so that there's no obvious way to
> do it. This didn't g
William Bryant wrote:
> Sent: Wednesday, September 11, 2013 2:32 PM
> To: python-list@python.org
> Subject: Re: Help please, why doesn't it show the next input?
>
> @Dave Angel
>
> What is .lower() ?
Thanks for bottom posting and trimming, but you should
leave some content quoted for context. Ot
Neil Cerutti wrote:
> This code is from The Python Cookbook, 2nd edition, 12.2 Counting
> Tags in a Document:
>
> from xml.sax.handler import ContentHandler
> import xml.sax
> class countHandler(ContentHandler):
> def __init__(self):
> self.tags={}
> def startElement(self, name, at
Tim Johnson
> using Python 2.7.1 on OS X 10.7.5
>
> I'm managing a process of drush using an instance of subprocess.Popen
>
> The process has a '--verbose' option. When that option is passed as
> part of the initializer `args' argument, the process will hang.
>
> It should be no surprise as drus
Ferrous Cranus wrote:
> Yes Uli, the script metrits.py is being invoked by Apache Web Server which in
> turn runs under user
> Nobody.
> So, that mean that? user 'nobody' has no write permission to /home/nikos
> folder?
Yes. You should make it group writable with "nobody" as the group. Use chmod
Ian Kelly wrote:
> On Thu, Aug 22, 2013 at 3:26 PM, Prasad, Ramit
> wrote:
> > Bitswapper wrote:
> >>
> >> So I have a parent and child class:
> >>
> >>
> >> class Map(object):
> >> def __init__(self, name=''):
> &
Bitswapper wrote:
>
> So I have a parent and child class:
>
>
> class Map(object):
> def __init__(self, name=''):
> self.mapName = name
> self.rules = {}
>
> class Rule(Map):
> def __init__(self, number):
> Map.__init__(self)
> self.number = number
This
Skip Montanaro wrote:
>
> Consider this little Python script:
>
> import dateutil.parser
> import pytz
>
> x = dateutil.parser.parse("2013-08-16 23:00:00+01:00")
> localtz = pytz.timezone("America/Chicago")
> y = localtz.normalize(x)
>
> When I execute it (Python 2.7.2, dateutil 1.5, pytz 2011h
Fredrik Tolf wrote:
>
> Dear list,
>
> I have a system in which I load modules dynamically every now and then
> (that is, creating a module with types.ModuleType, compiling the code for
> the module and then executing it in the module with exec()), and where I
> would wish to be able to have clas
alex23
>
> On 19/08/2013 10:55 AM, Sudheer Joseph wrote:
> > I have been using ipython and ipython with qtconsole and working on a
> > code with functions. Each time I make a modification in function
> > I have to quit IPTHON console (in both with and with out qt console )
> > and reload the funct
CM wrote:
>
> On Friday, August 9, 2013 9:10:18 PM UTC-4, Steven D'Aprano wrote:
> > I am seeking comments on PEP 450, Adding a statistics module to Python's
> > standard library:
>
> I think it's a very good idea. Good PEP points, too. I hope it happens.
>
+1 especially for non-Cpython versi
chandan kumar wrote:
> Hi ,
>
> Is there a way to validate variable values while debugging any python
> code.Run below example in
> debugging mode and i would like to know the value of c (I know print is an
> option) with any other
> option other than printing.
> In C# or some other tools we c
Michael Torrie wrote:
> On 08/11/2013 11:54 PM, Gregory Ewing wrote:
> > Michael Torrie wrote:
> >> I've always wondered if the 160 character limit or whatever it is is a
> >> hard limit in their system, or if it's just a variable they could tweak
> >> if they felt like it.
> >
> > Isn't it for com
Devyn Collier Johnson
> On 08/09/2013 03:44 PM, MRAB wrote:
> > On 09/08/2013 20:30, Devyn Collier Johnson wrote:
[snip]
> >>
> > jobs1.join()
> > jobs2.join()
> >
>
> Thanks MRAB! That is easy. I always (incorrectly) thought the join()
> command got two threads and made them one. I did not know i
Rui Maciel wrote:
> Chris Angelico wrote:
>
> > On Tue, Aug 6, 2013 at 10:01 AM, Rui Maciel wrote:
> >> It would be nice if some functions threw an error if they were passed a
> >> type
> >> they don't support or weren't designed to handle. That would avoid
> >> having to deal with some bugs whi
sam319 wrote:
> I am having problems with pycurl in my threads , when i run it , it does
> correctly but some times the
> connection has been established but nothing will be downloaded and the
> threads stay alive without
> doing any thing (especially when the network's speed is slow and has abor
memilanuk wrote:
> Hello there,
>
> What would be considered the correct/best way to run a current release
> of python locally vs. the installed system version? On openSUSE 12.3,
> the repos currently have 2.7.3 and 3.3.0. As far as I know, I'm not
> really hitting any limitations with the exist
Grant Edwards wrote:
> On 2013-07-31, Neil Cerutti wrote:
>
> > Besides, after studying The Pragmatic Programmer I removed nearly
> > all the tables from my code and reference them (usually with csv
> > module) instead.
>
> I don't understand. That just moves them to a different file --
> doesn
cerr wrote:
> Hi,
>
> Can I somehow use pickle.dump() to store a dictionary of lists to a file?
> I tried this:
>
> >>> import pickle
> >>> mylist = []
> >>> mydict = {}
> >>> mylist = '1','2'
> >>> mydict['3'] = mylist
> >>> fhg = open ("test", 'w')
> >>> pickle.dump(
Devyn Collier Johnson wrote:
> Thanks Matthew Lefavor! But specifically, why use "#!/usr/bin/env python3"
> instead of
> "#!/usr/bin/python3"?
>
> Mahalo,
>
> DCJ
I believe this will work on Windows for Python 3.3+ and also with virtualenv.
https://pypi.python.org/pypi/virtualenv
Virtualenv i
CTSB01 wrote:
> On Thursday, July 25, 2013 3:19:27 PM UTC-4, Dave Angel wrote:
> > On 07/25/2013 12:03 PM, CTSB01 wrote:
> >
> > > I have the following code that runs perfectly:
> >
> >
> > > def psi_j(x, j):
> >
> > >rtn = []
> >
> > >for n2 in range(0, len(x) * j - 2
Chris Angelico wrote:
> On Fri, Jul 26, 2013 at 5:07 AM, wrote:
> > Let start with a simple string \textemdash or \texttendash
> >
> sys.getsizeof('-')
> > 40
> sys.getsizeof('a')
> > 26
>
> Most of the cost is in those two apostrophes, look:
>
> >>> sys.getsizeof('a')
> 26
> >>> sys.
Terry Reedy wrote:
>
> On 7/24/2013 4:34 PM, Prasad, Ramit wrote:
>
> > I am still not clear on the advantage of views vs. iterators.
>
> A1: Views are iterables that can be iterated more than once. Therefore,
> they can be passed to a function that re-iterates its
Stefan Behnel wrote:
> Ethan Furman, 24.07.2013 20:31:
> > On 07/24/2013 10:23 AM, Stefan Behnel wrote:
> >> Peter Otten, 24.07.2013 08:23:
> >>> Ethan Furman wrote:
>
> So, my question boils down to: in Python 3 how is dict.keys() different
> from dict? What are the use cases?
> >
Neil Cerutti wrote:
> On 2013-04-12, Mark Janssen wrote:
> > Possibily, but don't accept this view of the legal system.
> > Judges can be quite reasonable. They don't want more time
> > taken for bullshit cases and would much prefer for things to be
> > settled (that is what their duty is -- to s
Jabba Laci
> Hi,
>
> I wonder if there is a nice way to extract a whole HTML table and have the
> result in a nice structured
> format. What I want is to have the lifetime table at the bottom of this page:
> http://en.wikipedia.org/wiki/List_of_Ubuntu_releases (then figure out with a
> script un
Steven D'Aprano wrote:
> try:
> main()
> except Exception as err:
> log(err)
> print("Sorry, an unexpected error has occurred.")
> print("Please contact support for assistance.")
> sys.exit(-1)
>
>
I like the traceback[0] module for logging last exception thrown.
See tracebac
Mark Janssen wrote:
> >> It doesn't have to say so, if it's not charging any money -- there's no
> >> expectation that you're getting anything at all!
> >
> > Of course there is. If Oprah Winfrey stands up and publicly says that
> > she's giving you a car, FOR FREE, no strings attached, and then gi
Minh Dang wrote:
>
> can anyone help me?
Chris Angelico has given you some good comments which
should give you a direction to investigate.
This list is a global list and you seem a tad impatient. It is normal
to hear back from a few hours to a day or two.
Even if I wanted to help, without cont
Doron wrote:
>
> Hey, I'm tring to create a software that records the keyboard/mouse and sends
> email of the log every
> predetermined period.
>
> I've manage to make the recorder and the auto-email sender, but I still can't
> make both of them work
> simultaneously.
>
> Can someone help me w
andrea crotti
>
> I wrote a script, refactored it and then introducing a bug as below:
>
> def record_things():
> out.write("Hello world")
>
> if __name__ == '__main__':
> with open('output', 'w') as out:
> record_things()
>
>
> but the shocking thing is that it didn't actually
Anatoli Hristov wrote:
> Hello,
>
> Tried to document a little bit the script, but I'm not that good in that too
> :)
>
> The only problem I have is that I cant compare other field than the
> first one in
> for ex_phone in phones:
> telstr = ex_phone[0].lower()
> When I use telstr = ex_p
Dennis Lee Bieber wrote:
>
> Unless there has been a major change in the parser... (I still don't
> have Python 3.x installed)
>
> I believe is expanded to 8-spaces -- NOT TO NEXT MULTIPLE OF
> 8...
A tab is *one* character. Your *editor* may show tabs visually
"expanded" or conver
Christian Heimes wrote:
>
> Am 28.11.2012 19:14, schrieb Michael Torrie:
> > I'm curious. What features do you need that pil doesn't have? Other
> > than updating pil to fix bugs, support new image types or new versions
> > of Python, what kind of active development do you think it needs to
> >
Ramit Prasad wrote:
>
> Dennis Lee Bieber wrote:
> >
> > Unless there has been a major change in the parser... (I still don't
> > have Python 3.x installed)
> >
> > I believe is expanded to 8-spaces -- NOT TO NEXT MULTIPLE OF
> > 8...
>
san wrote:
>
> Please let me know how to sort the list of String in either ascending /
> descending order without considering
> special characters and case.
> ex: list1=['test1_two','testOne','testTwo','test_one']
> Applying the list.sort /sorted method results in sorted list ['test1_two',
> 'te
Andrew wrote:
>
> Hello world,
>
> I'm working on a script that will run an executable obtaine the output
> from the executable
> and do some analysis on the output. Essentially the script runs the
> executable analyses
> the data.
> I'm looking into os.popen and the subprocess module, implement
Chris Angelico wrote:
>
> On Sat, Nov 24, 2012 at 3:27 AM, Prasad, Ramit
> wrote:
> > Steven D'Aprano wrote:
> >>
> >> On Wed, 21 Nov 2012 14:41:24 +1100, Chris Angelico wrote:
> >>
> >> > However, this still means that the player
Dave Angel wrote:
>
> On 11/20/2012 06:41 PM, Tom Borkin wrote:
>
> (Please don't top-post. Now we lose all the context)
> > Using shlex, I now have this:
> > #!\Python27\python
> > import os, subprocess
> > path = os.path.join("C:\\", "Program Files", "Apache Group", "Apache2",
> > "htdocs", "c
Steven D'Aprano wrote:
>
> On Wed, 21 Nov 2012 14:41:24 +1100, Chris Angelico wrote:
>
> > However, this still means that the player will see the exact same level
> > regenerated every time, absolutely fresh. As previously stated in this
> > thread, that's not usually a good thing for encounters,
brint...@controlledthinking.com wrote:
>
> On Tuesday, November 20, 2012 2:41:58 PM UTC-8, Prasad, Ramit wrote:
> > brintoul at controlledthinking.com wrote:
> >
> > Apologies, I misread your question.
> >
> > According to the imaplib docs, you can subclass IM
brint...@controlledthinking.com wrote:
> > > I have a multihomed machine that I would like to run the Python imaplib's
> > > IMAP4 client on. I would like to be
> > > able to specify which interface the underlying socket will bind to as its
> > > source address. How could I best do
> > > this?
brint...@controlledthinking.com wrote:
>
> Hello:
>
> I have a multihomed machine that I would like to run the Python imaplib's
> IMAP4 client on. I would like to be
> able to specify which interface the underlying socket will bind to as its
> source address. How could I best do
> this?
One
Steven D'Aprano wrote:
>
> On Tue, 20 Nov 2012 07:18:42 -0800, Michael Herrmann wrote:
>
> > Thanks again for your further replies. So far, it's 4 votes for
> > 'send_keys' and 1 vote for 'type'.
> >
> > Regarding 'send_keys': To me personally it makes sense to send keys _to_
> > something. Howev
Alvaro Combo wrote:
>
> Hi All,
>
> I'm relatively new to Python... but I have found something I cannot
> explain... and I'm sure you can help me.
>
> I have the following function that serves for removing the duplicates from a
> list... It's a simple and (almost)
> trivial task.
>
> I'm usi
Can you please post in plain text and stop top-posting? Thanks.
inshu chauhan wrote:
>
> def distance(c, p):
> dist = sqrt(
> ((c[0]-p[0])**2) +
> ((c[1]-p[1])**2) +
> ((c[2]-p[2])**2)
> )
> return dist
>
>
> def GenerateRing(x,y, N): Gen
Roy Smith wrote:
>
> OK, I've just read back over the whole thread. I'm really struggling to
> understand what point you're trying to make. I started out by saying:
>
> > Use a list when you need an ordered collection which is mutable (i.e.
> > can be altered after being created). Use a tuple
Artie Ziff wrote:
>
> On 11/9/12 5:50 AM, rusi wrote:
> > On Nov 9, 5:54 pm, Artie Ziff wrote:
> > # submit correctedinput to etree
> I was very grateful to get the "leg up" on getting started down that
> right path with my coding. Many thanks to you, rusi. I took your
> excellent advices and hav
danielk wrote:
>
> The database I'm using stores information as a 3-dimensional array. The
> delimiters between elements are
> chr(252), chr(253) and chr(254). So a record can look like this (example only
> uses one of the delimiters for
> simplicity):
>
> name + chr(254) + address + chr(254) +
Peng Yu wrote:
>
> > Is this what you want?
> > http://docs.python.org/2/library/trace.html
>
> I'm not able to get the mixing of the python command screen output on
> stdout. Is there a combination of options for this purpose?
>
> ~/linux/test/python/man/library/trace$ cat main1.py
> #!/usr/bin
Jean Dubois wrote:
>
> On 9 nov, 17:40, Rodrick Brown wrote:
> > It seems pretty obvious from the error. Try installing the missing lib
> > packages.
> >
> > OSError: /usr/local/vxipnp/linux/bin/libvisa.so.7: cannot open shared
> > object file: No such file or directory
> >
> > Sent from my iPho
Dennis Lee Bieber wrote:
>
> On Fri, 9 Nov 2012 17:07:09 +1100, Chris Angelico
> declaimed the following in gmane.comp.python.general:
>
> > On Fri, Nov 9, 2012 at 12:39 PM, Mark Lawrence
> > wrote:
> > > On 07/11/2012 01:55, Steven D'Aprano wrote:
> > >>
> > >>
> > >> Who knows? Who cares? No
Chris Angelico wrote:
>
> What you really should be doing is not transforming the whole
> structure, but explicitly transforming each part inside it. I
> recommend you stop fighting the language and start thinking about your
> data as either *bytes* or *characters* and using the appropriate data
>
Andriy Kornatskyy wrote:
>
> Thank you for all comments.
>
> > It makes very good sense to say:
> >
> > duckmatch(IFoo).compare(Foo)
>
> Since we do duck match of IFoo... but there is no `duck match`, there is
> `duck test`. I believe instead of
> `compare` is more readable with `equals`. Than
Graham Fielding wrote:
>
> Hey, folks, me again!
>
> I've been puzzling over this for a while now:
>
> I'm trying to write data to a file to save the state of my game using the
> following function:
>
> def save_game():
> #open a new empty shelve (possibly overwriting an old one) to write
wxjmfa...@gmail.com wrote:
>
> Le jeudi 8 novembre 2012 19:49:24 UTC+1, Ian a écrit :
> > On Thu, Nov 8, 2012 at 11:32 AM, Oscar Benjamin
> >
> > wrote:
> >
> > > If I want the other characters to work I need to change the code page:
> > >
> > > O:\>chcp 65001
> > > Active code page: 65001
> > >
Anders wrote:
>
> I've run into a Unicode error, and despite doing some googling, I
> can't figure out the right way to fix it. I have a Python 2.6 script
> that reads my Outlook 2010 task list. I'm able to read the tasks from
> Outlook and store them as a list of objects without a hitch. But whe
Gregory Ewing wrote:
>
> Roy Smith wrote:
> > Call by social network? The called function likes the object.
> > Depending on how it feels, it can also comment on some of the object's
> > attributes.
>
> And then finds that it has inadvertently shared all its
> private data with other functions a
iMath wrote:
> how to get a list of names of everything in the current directory ?
http://lmgtfy.com/?q=python+get+files+in+directory
~Ramit
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and
Andrew Robinson wrote:
>
> On 11/06/2012 01:04 AM, Steven D'Aprano wrote:
> > On Mon, 05 Nov 2012 21:51:24 -0800, Andrew Robinson wrote:
> >
[snip]
> > Q: What about other mutable objects like sets or dicts?
> > A: No, the elements are never copied.
> They aren't list multiplication comp
Steven D'Aprano wrote:
>
> On Tue, 06 Nov 2012 17:16:44 +0000, Prasad, Ramit wrote:
>
> >> To enter the newline, I typed Ctrl-Q to tell bash to treat the next
> >> character as a literal, and then typed Ctrl-J to get a newline.
> >
> > That sounds
Levi Nie wrote:
>
> Who can give me some practical tutorials on django 1.4 or 1.5?
> Thank you.
Maybe this will help: http://gettingstartedwithdjango.com/resources/
~Ramit
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sa
Dennis Lee Bieber wrote:
>
> On Tue, 06 Nov 2012 13:26:11 +0100, Peter Otten <__pete...@web.de>
> declaimed the following in gmane.comp.python.general:
>
> > anuradha.raghupathy2...@gmail.com wrote:
[snip]
> > > def main():
> > >logging.basicConfig(Filename='c://myapp.log', level=logging.ERRO
Ian Kelly wrote:
>
> On Tue, Nov 6, 2012 at 1:21 AM, Andrew Robinson
>
[snip]
> > See if you can find *any* python program where people desired the
> > multiplication to have the die effect that changing an object in one of the
> > sub lists -- changes all the objects in the other sub lists.
> >
Steven D'Aprano wrote:
>
> On Mon, 05 Nov 2012 14:47:47 -0500, Dennis Lee Bieber wrote:
>
[snip]
>
> Nevertheless, I do tend to prefer underscores to spaces, simply because I
> often use naive tools that treat spaces as separators. That is, command
> line shells.
I visually prefer spaces but it
Grant Edwards wrote:
> On 2012-11-05, Roy Smith wrote:
> > In article ,
> > Chris Angelico wrote:
> >
> >> It's nothing to do with operating system. File names are names, and
> >> spaces in them are seldom worth the hassle unless you manipulate those
> >> files solely using a GUI.
> >
> > That's
Gary Herron wrote:
> On 10/29/2012 04:13 PM, noydb wrote:
> > All,
> >
> > I need help with a date and time comparison.
> >
> > Say a user enters a date-n-time and a file on disk. I want to compare the
> > date and time of the file to the
> entered date-n-time; if the file is newer than the enter
Replying to skyworld because I could not find the original message
from MRAB.
skyworld wrote:
> On Oct 27, 11:02 am, MRAB wrote:
> > On 2012-10-27 03:28, skyworld wrote:> Hi,
> >
> > > I'm new to python and I'm trying to porting some scripts from v0.96 to
> > > v2.0.1. A piece of code is like thi
arg 2',
> "even args containing a ' are ok")
>
> For Windows, you'll have to modify this somehow.
>
The subprocess module suggests using pipes.quote for escaping.
>>> a
('program name', 'argu"ment 1', '$arg 2', &q
> for num in range(0,range_of_seq):
>if num % 3 != 0:
>next_3_d_array.append(num)
>if num % 3 == 0:
>array_list.append(next_3_d_array)
>next_3_d_array = [ ]
>
Wow, that looks complicated. Why hardcode to
t; long time. Probably needed only by me in debugging mode, but anyway I
> can do the simple try/except then, thanks..
On the other hand, if you store state externally (pickle?) maybe
you can just restart at the last "check point". That way even if
the program dies you can recover on
s the str version.
>>> class t(object):
... def __str__(self):
... return 'str'
... def __repr__(self):
... return 'repr'
...
>>> a = t()
>>> print [a]
[repr]
>>> print a
str
>>> print a.__class__.__base_
ms to
> defeat much of the point for me. I may as well just set up the tables
> manually without the reflection, which is what I'll probably do.
>
> Maybe I just misunderstood what was meant in the SQLAlchemy docs here?:
>
> "but note that SA can also “import” whole
t is always helpful to provide python version, operating system version, full
error message,
and input/expected output for the code. Now I can tell you are using Python 2.x
but
without having any clue what is in keywords1.txt it is impossible to figure out
what the problem might be. Other than us
Roy Smith wrote:
> Pet peeve of the day...
>
> Why do you have to write:
>
> global foo
> foo = 4
>
> when
>
> global foo = 4
>
> would have been so much easier?
To make it more annoying for people who use globals, duh. :)
Ramit Prasad
This email is c
you just want to disable/enable the button while leaving it
visible maybe try setting the config state as shown here:
http://www.daniweb.com/software-development/python/threads/69669/tkinter-button-disable-#
.
Hope that helps,
Ramit Prasad
This email is confidential and subject to important di
oft.com/en-us/library/cc754820.aspx
[2] http://fuzzytolerance.info/using-python-to-manage-windows-services/
Ramit Prasad
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of inform
python takes up more memory than the size of the
> file itself.
Of course it will. Python has to keep its own code in memory and
load the file. Not to mention that the file is converted from data
into a Python object with its own overhead.
Ramit Prasad
This email is confidential and su
ython 2.5+ I would do the following instead.
with open(filename) as f:
for line in f:
# do something with line
This will automatically close the file when it is done. I doubt
it will help with memory issues, but closing files after you
are done with them is a Good practice.
Ram
Emile van Sebille wrote:
> On 10/19/2012 10:08 AM, Pradipto Banerjee wrote:
> > Hi,
> >
> > I am trying to read a file into memory. The size of the file is around 1
> > GB. I have a 3GB memory PC and the Windows Task Manager shows 2.3 GB
> > available physical memory when I was trying to read the
it separate from the OS X system Python. MacPorts will take
care of everything for you as long as you have Xcode installed.
`sudo ports install py27-pip`
Ramit Prasad
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sal
Ian Kelly wrote:
> Sent: Thursday, October 18, 2012 2:39 PM
> To: Python
> Subject: Re: len() on mutables vs. immutables
>
> On Thu, Oct 18, 2012 at 1:18 PM, Prasad, Ramit
> wrote:
> > Why does pointer arithmetic work for dicts? I would think the position
> > of
time. That includes the possibility
> of a subtraction as indicated above.
>
Why does pointer arithmetic work for dicts? I would think the position
of a value would be based on the hash of the key and thus "random" for
the context of this conversation.
Ramit Prasad
This email is
not
look like it was un-indented to be part of a different block.
if looks_like_it_might_be_spam(
some_longer_variables,
here_and_here, and_here_also):
logger.notice("might be spam")
move_to_spam_folder(some_longer_variables)
update_spam_statistics(here_
David Hutto wrote:
> On Wed, Oct 17, 2012 at 12:38 PM, Prasad, Ramit
> wrote:
> > David Hutto wrote:
> >> On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht
> >> wrote:
[snip]
>
> > The question is whose opinion matters. Yours? Mine? Others? Personally,
>
you write here is public and can be seen by anyone
with access to the Internet and a search engine. That includes prospective
clients/employers! I know there is an increasing trend for employers
to search the Internet to learn about potential employees. I do the
same before I hire a company fo
> ChrisA
> --
Home and end do not bother me much as I can usually use ctrl+a/ctrl+e
for the same purpose. I do wish I found a better way to page up/down.
Ramit Prasad
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase o
st in the developer communities). They often default to
80 characters, but handle various sizes. So that comparison is not quite
fair.
Ramit Prasad
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, ac
David Hutto wrote:
> On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht wrote:
> > * Your strength is not design. Using bevel and emboss (and a pattern here
> > and there) does not constitute good
> design.
>
> It's simplicity within a symbolism, and now that I need money for
> medical reasons, the
Daniel Fetchinson wrote:
> >> Hi folks,
> >>
> >> I'm using a stand alone window manager without gnome or kde or any
> >> other de. But I still would like to have a system tray or notification
> >> area and so far used stalonetray for this. Stalonetray is written in C
> >> and is a GTK application,
Steven D'Aprano wrote:
> On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and dicks:
>
> > The best advise is to ignore such posts and encourage others to do the
> > same.
>
> If you ignore such posts, how will the poster know they are unacceptable?
>
> How should somebody distinguis
1 - 100 of 330 matches
Mail list logo