print 'YAY!'
If I pass:
breakLine([])
I get:
YAY!
I expect:
You must pass a list that contains 19 fields.
If I print len(value) I get: 0
What is going on here?
Thanks!
[cid:[email protected]]
Joe Leonardo | Business Intelligence Analyst |
DataLogix<h
so I don't have a lot of technical
knowledge.
Thanks in advance,
Joe.
--
https://mail.python.org/mailman/listinfo/python-list
Sohail Ahmad writes:
> kindly please help me about issues
> SyntaxError: multiple statements found while compiling a single statement
> how to solve this issues
Please post the code that got the error. Preferably several lines
before the actual error, and the line with the error itself.
--
h
Jon Ribbens writes:
> On 2022-10-12, Michael F. Stemper wrote:
>> On 12/10/2022 07.20, Chris Green wrote:
>>> ... and rm will just about always be in /usr/bin.
>>
>> On two different versions of Ubuntu, it's in /bin.
>
> It will almost always be in /bin in any Unix or Unix-like system,
> because
Cameron Simpson writes:
> On 12Oct2022 20:54, Jon Ribbens wrote:
>>On 2022-10-12, Jon Ribbens wrote:
>>> On 2022-10-12, Joe Pfeiffer wrote:
>>>> Jon Ribbens writes:
>>>>> on Amazon Linux:
>>>>>
>>>>> $
Ethan Furman writes:
> I'm looking for a name for a group of options that, when one is specified,
> all of them must be specified.
I don't fully understand the question (yes, I read the part I snipped).
Why is this not just a single option? Or is it hierarchical or
something so option 1 impli
Ethan Furman writes:
> On 2/24/21 1:54 PM, [email protected] wrote:
>> Ethan Furman wrote:
>
>>> I didn't say it was a good example. ;-) Hopefully it gets the idea across.
>> Ditto. ;-)
>> IMO, the whole idea of "my program has two options, and the user has
>> to
>> specify bo
It's not a bug, it's a design choice you are disagreeing with: managing
indentation is your job, not the interpreter's. For anything other than
an absolutely trivial three-line script, I write in an editor that does
a good job helping me manage indentation (in my case, emacs in Python
mode).
wr
Mr Flibble writes:
> Python is slow and significant whitespace is patently absurd.
Why am I not surprised to learn your "fast" implementation turns out to
be something other than python?
--
https://mail.python.org/mailman/listinfo/python-list
Skip Montanaro writes:
>>
>> Machine language is so much simpler, and you can code with just a hexpad.
>>
>
> Pshaa... All you need are front panel switches. ;-) (Yes, I had a professor
> who required is to 'key' in our programs on the front panel, of a rack
> mounted PDP-11 as I recall. Needless
Hope Rouselle writes:
> Christian Gollwitzer writes:
>>
>> I believe it is not commutativity, but associativity, that is
>> violated.
>
> Shall we take this seriously? (I will disagree, but that doesn't mean I
> am not grateful for your post. Quite the contary.) It in general
> violates assoc
[email protected] (Stefan Ram) writes:
> [email protected] (Stefan Ram) writes:
>>can be misleading, because the "..." part can still contain
>>"break", "raise", "continue", and "return" statement. So one
>>better should always be on the watch when reading source code
>>of a language l
[email protected] writes:
> On 2021-09-10 at 15:08:19 -0600,
> Joe Pfeiffer wrote:
>
>> [email protected] (Stefan Ram) writes:
>
>> > The existence of statements like "break" renders
>> > proof techniques for loops (suc
[email protected] (Stefan Ram) writes:
> Alan Gauld writes:
>>OK, That's a useful perspective that is at least consistent.
>>Unfortunately it's not how beginners perceive it
> ...
>
> Beginners perceive it the way it is explained to them by
> their teacher.
My life as a professor would
Eli the Bearded <*@eli.users.panix.com> writes:
> In comp.lang.python, Michael F. Stemper wrote:
>> I've heard of JSON, but never done anything with it.
>
> You probably have used it inadvertantly on a regular basis over the
> past few years. Websites live on it.
If the user has any interaction
[email protected] (Stefan Ram) writes:
> - S expressions (i.e., LISP notation)
If you're looking at hierarchical data and you don't have some good
reason to use something else, this is very likely to be your simplest
option.
--
https://mail.python.org/mailman/listinfo/python-list
Daniel Eduardo Almeida Correa writes:
> Hello, I'm trying to use the machine library in python 3.10 version, but I
> can't import it with the pip install machine, could you tell me a way to
> solve it or a python version compatible with the library? Thank you a lot
> for your answer.
The "machi
Cecil Westerhof writes:
> In C when you declare a variable static in a function, the variable
> retains its value between function calls.
> The first time the function is called it has the default value (0 for
> an int).
> But when the function changes the value in a call (for example to 43),
> t
ast writes:
> Hi
>
> I found this way to put a large number in
> a variable.
>
> C = int(
> "28871482380507712126714295971303939919776094592797"
> "22700926516024197432303799152733116328983144639225"
> "94197780311092934965557841894944174093380561511397"
> "42154241693397290542371100275104208
bartc writes:
> On 25/03/2018 15:53, Joe Pfeiffer wrote:
>> ast writes:
>
>>> C = int(
>>> "28871482380507712126714295971303939919776094592797"
>>> "22700926516024197432303799152733116328983144639225&qu
Steven D'Aprano writes:
> On Mon, 26 Mar 2018 02:37:44 +0100, bartc wrote:
>
>> If I instead initialise C using 'C = int("288712...")', then timings
>> increase as follows:
>
> Given that the original number given had 397 digits and has a bit length
> of 1318, I must admit to some curiosity as t
Mikhail V writes:
> On Mon, May 21, 2018 at 1:41 PM, Chris Lindsay via Python-list
> wrote:
>
>> If a block of static data is large enough to start to be ugly, a common
>> approach is to load the data from some other file, in a language which is
>> designed around structured data.
>
>
> Maybe it
Peter Otten <[email protected]> writes:
> Gene Heskett wrote:
>
>> This biggest single thing wrong with any of those old scsi interfaces is
>> the bus's 5 volt isolation diode, the designer speced a shotkey(sp)
>> diode, and some damned bean counter saw the price diff and changed it to
>
> Is this
Peter Otten <[email protected]> writes:
> Grant Edwards wrote:
>
>> On 2018-06-18, Joe Pfeiffer wrote:
>>> Peter Otten <[email protected]> writes:
>>>
>>>> Gene Heskett wrote:
>>>>
>>>>> This biggest single thing wron
Mikhail V writes:
> [Steven D'Aprano]
>
>> (The same applies to Unix/Linux systems too, of course.) But while you're
>> using Python to manipulate files, you should use Python rules, and that
>> is "always use forward slashes".
>>
>> Is that reasonable?
>>
>> Under what circumstances would a user
I notice a correlation: the less people have interacted with Bart, the
more tolerant they are.
He once went on for *weeks* about C's (yes, this was in c.l.c) failure
to have what he regards as a "proper" for-loop.
--
https://mail.python.org/mailman/listinfo/python-list
I just goolged for SANS Scrapy Cheatsheetthey have several
SANS.org
From: Python-list on
behalf of Jim
Sent: Friday, September 14, 2018 8:15:05 AM
To: [email protected]
Subject: Re: Looking for a Scrapy cheatsheet
On 09/14/2018 01:27 AM, Danyelle Da
Potentially Off Topic
I am looking for python programming related blogs, papers, videos in Swahili,
Tagalog, Somali, Javanese (Indonesian?), Lithuanian, Pashto, Bulgarian, Farsi,
Amharic, Georgian, Kazakh, and Tamil. Although blogs are not online I am
looking for material that is not easily a
t with FSF.org
(Free Software Foundation) or EFSF (European FSF) https://fsfe.org/
Joe
--
https://mail.python.org/mailman/listinfo/python-list
[email protected] writes:
> MRAB at 2018/12/8 UTC+8 AM10:04:51 wrote:
>> Before Python 3, a leading 0 in an integer literal would indicate an
>> octal (base 8) number.
>
> So, the reason is historical.
>
>> The old form is now invalid in order to reduce the chance of bugs.
>
> I encounter this
"Avi Gross" writes:
> SYNOPSIS: One way to solve math puzzle by brute force. (message sent earlier
> disappeared)
>
>
>
> Quick note. Jack started by asking why python does not like decimal
> numbers with leading zeroes. When asked to explain, he said he was
> trying to solve word problems usi
ast writes:
> Hello
>
float('Nan') == float('Nan')
> False
>
> Why ?
>
> Regards
Others have given the real answer -- IEEE says so, and the people who
wrote the standard are smarter than me. All the same, this is my take
on the reason for it: NaN is specifically a representation for "this
songbird writes:
> Chris Angelico wrote:
>> On Thu, Feb 14, 2019 at 7:12 AM Test Bot wrote:
>>>
>>> This definition of NaN is much better in mentally visualizing all the so
>>> called bizarreness of IEEE. This also makes intuitive that no 2 NaN will be
>>> equal just as no 2 infinities would be
[email protected] writes:
> There are more integers than odd numbers, and more odd numbers than prime
> numbers. An infinite set may be a subset of another infinite set although
> they may both have the same cardinality. Or in other words, the number of
> elements in each set is not equal. One has m
ast writes:
> Le 13/02/2019 à 14:21, ast a écrit :
>> Hello
>>
>> >>> float('Nan') == float('Nan')
>> False
>>
>> Why ?
>>
>> Regards
>>
>
> Thank you for answers.
>
> If you wonder how I was trapped with it, here
> is the failing program.
>
>
> r = float('Nan')
>
> while r==float('Nan'):
>
Chris Angelico writes:
>
> Or even better, use None instead of nan. There's nothing in Python
> says you have to (ab)use a floating-point value as a signal. Or use
> "while True" and add a break if the exception isn't thrown.
Good point.
--
https://mail.python.org/mailman/listinfo/python-list
Joel Goldstick writes:
> On Wed, May 29, 2019 at 1:17 AM Sri Tharun wrote:
>>
>> Problem not resolved.Yet
>>
>> On Wed 29 May, 2019, 6:39 AM Tharun, wrote:
>>
>> >
>> > >>> sudo apt-get update
>> >
>> > File "", line 1
>> >
>> > sudo apt-get update
>> >^
>> > SyntaxError:
One other note -- while you may want various good-looking fonts with
ligatures in other domains, for writing code a monospace font with no
ligatures lets you see exactly what's there and saves a host of
problems. My personal favorite for these purposes is called "Terminus
Regular", but which speci
"Peter J. Holzer" writes:
> On 2020-06-24 15:33:16 -0600, Joe Pfeiffer wrote:
>> One other note -- while you may want various good-looking fonts with
>> ligatures in other domains, for writing code a monospace font with no
>> ligatures lets you see exactly w
Jeff Linahan writes:
>
> See attached image. Would be nice if it printed "SyntaxError: unbalanced
> parens" as it can difficult to see the problem if code like this is run in
> an environment that only prints the problematic line, which in this case
> the compiler is confused and one line off.
I
Chris Green writes:
> Stefan Ram wrote:
>> Chris Green writes:I can't find the documentation for
>> >read(). It's not a built-in function and it's not documented with
>> >(for example) the file type object sys.stdin.
>>
>> |read() (asyncio.StreamReader method), 894
>> |read() (chunk.Chunk
Stephane Tougard writes:
> On 2020-09-27, Stefan Ram wrote:
>>>Is there any other instruction to end a if than pass and ensure Emacs
>>>does not break the indentation during a copy paste or an indent-region ?
>>
>> We usually do not wish to tie our code to a defective editor.
>> I use vi, an
We are recruiting Developers, and Creatives to join our community into building
personal portfolios, personal development skills, work on Open Source Projects,
Devops, Collaboration, User Testing and Supports.
Community members include experts in product designs, python programming, data
scienc
Bischoop writes:
> I've function asking question and comparing it, if is not matching 'yes'
> it does call itself to ask question again. The problem is that when
> function is called second time it returns old value or with additional
> else statement it returns none.
>
> Code: https://bpa.st/KVG
Bischoop writes:
> On 2020-12-12, Joe Pfeiffer wrote:
>> Bischoop writes:
>>
>>> I've function asking question and comparing it, if is not matching 'yes'
>>> it does call itself to ask question again. The problem is that when
>>> fu
Bischoop writes:
> On 2020-12-17, Dennis Lee Bieber wrote:
>>>
>>
>> The main concern is that you are using a RECURSIVE call. It is much
>> better for such input checking to use an ITERATIVE (loop) scheme.
>>
>> def marriage():
>> #loop forever
>> while True:
Grant Edwards writes:
> On 2020-12-18, Joe Pfeiffer wrote:
>
>> Recursion has very limited application, but where it's the right
>> tool it's invaluable (top-down parsers, some graph algorithms...).
>> We teach it primarily because by the time a student has
worzel wrote:
What is the best way to web developemnt with Python? Is there
anything close to PHP style in-page script placement that can create
and use other Python objects? I am not really interested in Zope (I
believe that is more a CMS than anything else?) I am also looking for
something a litt
Timo Virkkala wrote:
This guy has got to be a troll. No other way to understand.
--
Timo Virkkala
Not a troll, just another case of premature optimization run amok.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Just <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, Robert Kern <[EMAIL PROTECTED]>
> wrote:
>
> > Christian Dieterich wrote:
> > > On Dé Céadaoin, Feabh 2, 2005, at 17:48 America/Chicago,
> > > [EMAIL PROTECTED] wrote:
> > >
> > >> Hi there
> > >
e collection
I am running Fedora Core 3, and it is Python version 2.3.4 [GCC 3.4.2
20041017 (Red Hat 3.4.2-6.fc3)].
Thanks, Joe
--
http://mail.python.org/mailman/listinfo/python-list
t))
print "hi"
This way, there's no "float" call, simply an asignment of a long int...
Thanks, Joe
Peter Otten wrote:
> Terry Reedy wrote:
>
>
>>>>>os.utime("foo_test_file", (0, float(sys.maxint+1)))
>>
>>Traceba
I have an executable
version of a script that I wrote, but my script and backups got erased. Is
it possible to get the python script back from an exe file created with
py2exe?
Joe Woodward
Phoenix Analysis & Design
Technologies
7755 s. Research Drive - Suite
110
Tempe, Arizona 8
#x27;s a Jpython but what use would I get from using Python with
Java? If I'm already familiar with Java programming why would I want to use
Python with Java?
Again I appreciate any help with the above two questions.
Thanks,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
ython extensions directly in Delphi:
http://membres.lycos.fr/marat/delphi/python.htm
http://www.atug.com/andypatterns/PythonDelphiLatest.htm
Demo09 (look in demodll.dpr & module.pas) in the download tells you how.
Peace,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
I usually just edit with SciTE and use the
TortoiseSVN Explorer extension or the command-line utilities for
checkins and updates.
Peace,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
.php
Peace,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
Chris wrote:
Hi Joe,
I'm curious. Why do you only use Eclipse for big projects?
Habit, mainly; plus it's easier for one-offs and single-file scripts to
just right-click a file in Explorer and "Edit with ScITE" and work from
there. And to further complicate matters, when
Xah Lee wrote:
here's a interesting real-world algoritm to have fun with.
From you? Doubtful.
Sorry, dude, but you've been replaced by über-troll Ilias Lazaridis.
Security will escort you to the door.
--
Soraia: http://www.soraia.com
--
http://mail.python.org/mailman/listinfo/python-list
Ilias Lazaridis wrote:
Mike Meyer wrote:
Ilias Lazaridis <[EMAIL PROTECTED]> writes:
MinGW compatibility is not my need.
Then why do you waste so much effort whining about it not being given
to you?
It is an community need.
Based on the evidence at hand, this is a false statement.
MinGW co
Ilias Lazaridis wrote:
Joe Francia wrote:
Ilias Lazaridis wrote:
[...]
MinGW compatibility is not [only] my need.
It is an community need [at least partially]
You keep using that word "community". I do not think it means what you
think it means.
The community is everyone aro
Rigga wrote:
Hi,
I am looking for the best way to use Python to get a web page, look for some
particular fields on a form, fill in the fields and submit the form but I
have no idea where to start - any pointers appreciated
many thanks
Rigga
Here's a pretty good resource:
http://www.google.com/searc
Sean wrote:
Sean wrote:
Then I would have a script that uses the
print_this function defined in the module
without using the module name in the call.
from module_name import print_this
or, even:
from module_name import print_this as other_nice_name
So what if I have a whole bunch of functions -
On Wed, 16 Feb 2005 19:05:35 GMT, Rigga <[EMAIL PROTECTED]> wrote:
Joe Francia wrote:
Rigga wrote:
Hi,
I am looking for the best way to use Python to get a web page, look for
some particular fields on a form, fill in the fields and submit the
form
but I have no idea where to start - any po
On 16 Feb 2005 13:31:31 -0800, alex <[EMAIL PROTECTED]> wrote:
Hi,
it is possible to define multiple initialization methods so that the
method is used that fits?
I am thinking of something like this:
def __init__(self, par1, par2):
self.init(par1, par2);
def __init__(self, par1):
self.i
Michal Migurski wrote:
Thank you. My impression of Zope in the past has been that it does what
I need, along with 10,000 other things I don't (built in WebDAV
server?!), but clearly I owe it another chance. I've been initially
attracted to mod_python because of its raw simplicity and its apparen
[EMAIL PROTECTED] wrote:
Hi,
support I have a library of function, called mylib.py, in which
there are 2 functions 'f1' and 'f2' (1 arguments in either one);
Now I want to write a wrapper that will invoke f1 or f2 using the
command line argument. So for example, I want to write a function
"call.py"
I think python is expecting a octet number from the
input?
- Joe
- Original Message -
From:
[EMAIL PROTECTED]
To: [email protected]
Sent: Monday, March 14, 2005 10:51
AM
Subject: Bug?
HelloIve recently found that you cannot type anything
over 7 into a
verzeihung , was ist das?
- Original Message -
From: "merman" <[EMAIL PROTECTED]>
Newsgroups: comp.lang.python.announce
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 25, 2004 8:12 PM
Subject: Plone
> Hallo,
>
> das ist schon wichtig:
>
> http://plone.org/newsitems/plone-2.0.5-rc
>
"Alfred Canoy" <[EMAIL PROTECTED]>
news:[EMAIL PROTECTED]
> Hello,
>
> I'm just new to programming and would like to ask for help..
>
> Build a module that contains three functions that do the following:
>
> a.. Compute the average of a list of numbers
> b.. Finds the statistical
"Qiangning Hong" <[EMAIL PROTECTED]>
news:[EMAIL PROTECTED]
> Qiangning Hong wrote:
> > I want one of my function to execute when a cdrom is inserted. How can
> > I achieve that?
> >
> > Further more, I want to do different things depend on the inserted disc
> > type: if it is a normal cd-ro
from second import class
--
==
best regards
==
"Florian Lindner" <[EMAIL PROTECTED]>
news:[EMAIL PROTECTED]
> Hello,
> I've two files in my package.
> In the first file I want to inport a class which is declared in the
> second file. How can do that
Hi , it looks like that HTTPConnection class is not
capable to handle 302 redirect response. Is there any sample implementation that
tackle this problem? I am using python 2.3.3 on Windows platform.
best regards,
- Joe
---Outgoing mail is certified Virus
Free.Checked by AVG anti
Hi,
Is there any library to convert HTML page
with \u encoded text to native character set, e.g. BIG5.
Regards,
- Joe
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 2004/12/17
--
http
Jeremy Bowers <[EMAIL PROTECTED]> writes:
> On Thu, 31 Mar 2005 23:30:42 -0800, Erik Max Francis wrote:
>
>> Daniel Silva wrote:
>>
>>> Shriram Krishnamurthi has just announced the following elsewhere; it might
>>> be of interest to c.l.s, c.l.f, and c.l.p:
>>> http://list.cs.brown.edu/pipermail/
Xah Lee wrote:
of motherf***ing irrevalent drivel?
I am greatly amused.
A troll impersonating Xah Lee has made xah look like a total moron.
LOL
--
http://mail.python.org/mailman/listinfo/python-list
Email was scrambled by google:
Correct email address is: bior _jobs @ yahoo.com
(remove spaces).
I apologize for that.
- Joe Deasy
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Aug 6, 2013 at 12:36 PM, BrJohan wrote:
> On 06/08/2013 16:02, Chris Angelico wrote:
>
>>> My classhierarchy is like a multilevel tree where each non-leaf node
>>> (class)
>>> is given knowledge about its nearest subclasses and their 'capacities'.
>>>
>>> So, my idea is to let the 'upper'
t to check isistance(), I like duck typing, but
should I check if hasattr() and callable() before adding to the
container? What is the pythonic way to deal with it? Am I worrying too
much ;-)?
Thanks,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
Well, the main reason for me asking this question here was because of
the Java/C#/Whatever developer in me craving for an Interface for the
container's items, and I noticed that I'm not alone in this. But I was
actually expecting the "We're all consenting adults, here", I guess I
just needed the co
On 29 August 2013 10:07, Chris Angelico wrote:
> Hmm. l don't know of any good articles off-hand. But what I'm talking
> about is simply developing the skill of reading exceptions, plus a few
> simple things like knowing where it's appropriate to catch-and-log;
> sometimes, what that means is actu
Application. The examples Steven cited like GTK and Qt
are libraries that provides it. The word "Interface" means a lot of
things in programming.
--
Joe
--
http://mail.python.org/mailman/listinfo/python-list
On 2 September 2013 14:30, Joel Goldstick wrote:
> On Mon, Sep 2, 2013 at 1:16 PM, Joe Junior wrote:
>> On 2 September 2013 14:00, Paul Rice wrote:
>>>
>>> I know that most of my time will be writing . I dont think i specified very
>>> well what im asking.
eed impacts
so much programmer's productivity. In my experience I spend a lot more
time as a programmer (big emphasis on "lot") reading, thinking and
designing then writing code. So I find a good navigation tool more
important.
My solution/suggestion for python: emacs (in cua-mode for me) with Jedi.
Joe
--
https://mail.python.org/mailman/listinfo/python-list
on a keyboard was never the hard part of coding.
>
Nor the fun part.
Joe
--
https://mail.python.org/mailman/listinfo/python-list
g. None of the mentioned graphical toolkits forces
you to use them.
And if you like debugging, GUI is not the main dish! Try networking
and concurrent programming, loads and loads of fun!
Of course, that's lots of other unnecessary time consuming stuff you
can do. You just have to use your imagin
Could use zip:
tds = iter(soup('td'))
for abbr, defn in zip(tds, tds):
print abbr.get_text(), defn.get_text()
--
https://mail.python.org/mailman/listinfo/python-list
Hello- Which Python do I need for the below? with instructions please!
[cid:[email protected]]
Kind Regards,
Gerald"Joe"Sanders
Customer Global Quality Accounts
951 SanDisk Drive, building #5 | Milpitas, CA 95035 USA | cell +1,512.818.7798
corporate + 1.408.801.1000 |
On Fri, Nov 4, 2011 at 8:28 AM, John Roth wrote:
> The first is that if you use TDD (Test Driven Development) and
> refactor relentlessly to remove duplication, most of the basic design
> patterns will emerge naturally from the code as you work.
I agree, and there is a pretty good series of artic
Hi. I am new to python and wanted to search the python-list archives
for answers to my many questions but i can't seem to get the archive
files to uncompressed? What gives? From what i understand they are
gzip files so i assumed the gzip module would work, but no! The best i
could do was to get a
On Jan 5, 5:39 pm, Miki Tebeka wrote:
> Is the Google groups search not good enough?
That works but i would like to do some regexes and set up some
defaults.
> Also, can you give an example of the code and an input file?
Sure. Take the most recent file as example. "2012 - January.txt.gz".
If yo
On Jan 5, 6:10 pm, Ian Kelly wrote:
> Interesting. I tried this on a Linux system using both gunzip and
> your code, and both worked fine to extract that file. I also tried
> your code on a Windows system, and I get the same result that you do.
> This appears to be a bug in the gzip module under
On Jan 5, 7:27 pm, MRAB wrote:
> I've found that if I gunzip it twice (gunzip it and then gunzip the
> result) using the gzip module I get the text file.
On a windows machine? If so, can you post a code snippet please?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 5, 9:00 pm, MRAB wrote:
> On 06/01/2012 02:14, random joe wrote:
>
> > On Jan 5, 7:27 pm, MRAB wrote:
>
> >> I've found that if I gunzip it twice (gunzip it and then gunzip the
> >> result) using the gzip module I get the text file.
>
> > O
On Jan 5, 10:01 pm, random joe wrote:
> On Jan 5, 9:00 pm, MRAB wrote:
> > import gzip
>
> > in_file = gzip.open(r"C:\2012-January.txt.gz")
> > out_file = open(r"C:\2012-January.txt.tmp", "wb")
> > out_file.write(in_file.read())
> &
On Jan 6, 1:41 am, Ian Kelly wrote:
> One could also avoid creating the intermediate file by using a
> StringIO to keep it in memory instead:
Yes StringIO is perfect for this. Many thanks to all who replied.
--
http://mail.python.org/mailman/listinfo/python-list
Is there any way to raise the original exception that made the call to
__getattr__? I seem to stumble upon a problem where multi-layered attribute
failure gets obscured due to use of __getattr__. Here's a dummy code to
demonstrate my problems:
"""
import traceback
class BackupAlphabet(object):
Thanks for clearing up. Developers of python should address this issue, in
my opinion. 3.4/3.5 maybe, but better late than never.
Recently, I've been beaten back for using some exotic features of python.
One is this[ Took me hours to get to the bottom ]. The other one is
'property' decorator. I wa
Has anyone got a tip on how to control the source and destination ethernet macs using python?I am trying to test a bridge-like device. I have tried to use dnet and some of the other modules from Dugsong, but without success.
I am using a win2000 os, so my options are more limited than in the *nix
Can anyone tell me how to get boost.python to work on Debian Sarge?
When I try to build the tutorial hello world example bjam reports:
/usr/share/doc/libboost-doc/examples/libs/python/example/boost-build.jam
attempted to load the build system by invoking
'boost-build ../../../tools/build/
101 - 200 of 584 matches
Mail list logo