Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37259 > unrolled thread
| Started by | Ferrous Cranus <nikos.gr33k@gmail.com> |
|---|---|
| First post | 2013-01-22 02:07 -0800 |
| Last post | 2013-01-22 17:27 -0800 |
| Articles | 12 on this page of 92 — 15 participants |
Back to article view | Back to comp.lang.python
Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 02:07 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 11:31 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 03:53 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-22 23:26 +1100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:02 -0800
Re: Using filepath method to identify an .html page Lele Gaifax <lele@metapensiero.it> - 2013-01-22 13:22 +0100
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-22 07:29 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:47 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:50 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-22 23:59 +1100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:50 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:47 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 13:04 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 05:57 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 01:33 +1100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 06:55 -0800
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-22 10:05 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:21 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 02:27 +1100
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 11:36 -0700
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:40 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:40 +0000
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 17:07 -0700
Re: Using filepath method to identify an .html page MRAB <python@mrabarnett.plus.com> - 2013-01-23 00:40 +0000
Re: Using filepath method to identify an .html page rusi <rustompmody@gmail.com> - 2013-01-22 18:55 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-23 02:50 +0000
Re: Using filepath method to identify an .html page rusi <rustompmody@gmail.com> - 2013-01-22 19:04 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 15:44 +1100
Re: Using filepath method to identify an .html page Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-22 22:15 -0500
Re: Using filepath method to identify an .html page MRAB <python@mrabarnett.plus.com> - 2013-01-23 03:35 +0000
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 22:10 -0700
Re: Using filepath method to identify an .html page Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-23 01:13 -0500
RE: Using filepath method to identify an .html page "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-23 16:33 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-23 08:51 -0800
RE: Using filepath method to identify an .html page "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-23 18:19 +0000
Re: Using filepath method to identify an .html page Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-01-23 18:36 +0000
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-23 17:46 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-23 08:51 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:34 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:35 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:34 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:36 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:36 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:37 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:39 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:38 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:39 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:37 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:38 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:39 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:36 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:35 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:37 +0000
Re: Using filepath method to identify an .html page Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-22 16:44 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:21 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 02:07 +1100
Re: Using filepath method to identify an .html page Peter Otten <__peter__@web.de> - 2013-01-22 16:25 +0100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:46 -0800
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-22 11:11 -0500
RE: Using filepath method to identify an .html page "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-22 16:23 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:13 -0800
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 11:43 -0700
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:13 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:46 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:59 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 03:11 +1100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:26 -0800
Re: Using filepath method to identify an .html page MRAB <python@mrabarnett.plus.com> - 2013-01-22 18:49 +0000
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 11:49 -0700
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-22 14:00 -0500
Re: Using filepath method to identify an .html page Peter Otten <__peter__@web.de> - 2013-01-22 20:16 +0100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 23:25 -0800
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-23 08:25 -0700
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-23 07:56 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-23 07:56 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 23:25 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:26 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:59 -0800
Re: Using filepath method to identify an .html page John Gordon <gordon@panix.com> - 2013-01-22 16:55 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:07 -0800
Re: Using filepath method to identify an .html page John Gordon <gordon@panix.com> - 2013-01-22 18:37 +0000
Re: Using filepath method to identify an .html page Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-22 17:01 -0500
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:23 +0000
Re: Using filepath method to identify an .html page rusi <rustompmody@gmail.com> - 2013-01-22 09:33 -0800
Re: Using filepath method to identify an .html page Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-01-22 17:54 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:23 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 22:45 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 22:44 +0000
Re: Using filepath method to identify an .html page Mitya Sirenef <msirenef@lightbird.net> - 2013-01-22 19:23 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 06:55 -0800
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 11:21 -0700
Re: Using filepath method to identify an .html page alex23 <wuwei23@gmail.com> - 2013-01-22 17:27 -0800
Page 5 of 5 — ← Prev page 1 2 3 4 [5]
| From | John Gordon <gordon@panix.com> |
|---|---|
| Date | 2013-01-22 18:37 +0000 |
| Message-ID | <kdmm8m$hba$2@reader1.panix.com> |
| In reply to | #37318 |
In <4847a0e3-aefa-4330-9252-db08f2e993df@googlegroups.com> Ferrous Cranus <nikos.gr33k@gmail.com> writes:
> And the .html files are not even close 10.000
You said you wanted a 4-digit number. There are 10,000 different 4-digit
numbers.
0000
0001
0002
...
9999
--
John Gordon A is for Amy, who fell down the stairs
gordon@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2013-01-22 17:01 -0500 |
| Message-ID | <mailman.841.1358892099.2939.python-list@python.org> |
| In reply to | #37318 |
On Tue, 22 Jan 2013 10:07:21 -0800 (PST), Ferrous Cranus
<nikos.gr33k@gmail.com> declaimed the following in
gmane.comp.python.general:
>
> No, because i DO NOT WANT to store LOTS OF BIGS absolute paths in the database.
>
Why not? What is "BIG"...
10,000 paths of 255 characters is (presume ASCII 1-byte per
character) means you have 2,550,000 characters -- That's LESS THAN
THREE MB for all the file paths. Add in a 2-byte short integer ID and
you've got 20,000 bytes of IDs. Creating unique indices (ID should
already be a unique auto-increment column) double the data usage plus
maybe 160,000 bytes for the pointers from the index to the data record.
2,550,000 + 20,000 => 2,570,000 raw data
2,570,000 + 160,000 => 2,730,000 indices
2,570,000 + 2,730,000 => 5,300,000 5MB maximum
I could store all that on my ancient PDA!
We've probably generated that much text in the two discussion
threads alone!
The safest way to generate your four digit integer, without running
the risk of collision from hashing, is a simple database table with
unique ID column and unique filepath column.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:23 +0000 |
| Message-ID | <50ff1f7d$0$29965$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37318 |
On Tue, 22 Jan 2013 10:07:21 -0800, Ferrous Cranus wrote: > No, because i DO NOT WANT to store LOTS OF BIGS absolute paths in the > database. They are not big. They are tiny. Please stop being too arrogant to listen to advice from people who have been programming for years or decades. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | rusi <rustompmody@gmail.com> |
|---|---|
| Date | 2013-01-22 09:33 -0800 |
| Message-ID | <ef3fcf4a-6485-4a23-94bc-6628a47e5090@6g2000pbh.googlegroups.com> |
| In reply to | #37295 |
On Jan 22, 8:59 pm, Ferrous Cranus <nikos.gr...@gmail.com> wrote: > I just need a way to CONVERT a string(absolute path) to a 4-digit unique number with INT!!! > That's all i want!! But i cannot make it work :( I just need a way to eat my soup with a screwdriver. No I WONT use a spoon. Im starving HELP
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-01-22 17:54 +0000 |
| Message-ID | <mailman.815.1358877204.2939.python-list@python.org> |
| In reply to | #37312 |
On 22/01/2013 17:33, rusi wrote: > On Jan 22, 8:59 pm, Ferrous Cranus <nikos.gr...@gmail.com> wrote: >> I just need a way to CONVERT a string(absolute path) to a 4-digit unique number with INT!!! >> That's all i want!! But i cannot make it work :( > > I just need a way to eat my soup with a screwdriver. > No I WONT use a spoon. > > Im starving > HELP > Unfortunately a spoon wouldn't help in this case as the soup is being served in a basket. However I still absolutely insist that a Python solution to this problem is found. -- Cheers. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-01-22 10:23 -0800 |
| Message-ID | <068984f0-851c-462a-8fc3-455dceb20295@googlegroups.com> |
| In reply to | #37312 |
Τη Τρίτη, 22 Ιανουαρίου 2013 7:33:00 μ.μ. UTC+2, ο χρήστης rusi έγραψε: > On Jan 22, 8:59 pm, Ferrous Cranus <nikos.gr...@gmail.com> wrote: > > > I just need a way to CONVERT a string(absolute path) to a 4-digit unique number with INT!!! > > > That's all i want!! But i cannot make it work :( > > > > I just need a way to eat my soup with a screwdriver. > > No I WONT use a spoon. > > > > Im starving > > HELP That was funny!
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 22:45 +0000 |
| Message-ID | <50ff168a$0$29965$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37312 |
On Tue, 22 Jan 2013 09:33:00 -0800, rusi wrote: > On Jan 22, 8:59 pm, Ferrous Cranus <nikos.gr...@gmail.com> wrote: >> I just need a way to CONVERT a string(absolute path) to a 4-digit >> unique number with INT!!! That's all i want!! But i cannot make it work >> :( > > I just need a way to eat my soup with a screwdriver. No I WONT use a > spoon. > > Im starving > HELP Very well done :-) -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 22:44 +0000 |
| Message-ID | <50ff164d$0$30003$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37312 |
On Tue, 22 Jan 2013 09:33:00 -0800, rusi wrote: > On Jan 22, 8:59 pm, Ferrous Cranus <nikos.gr...@gmail.com> wrote: >> I just need a way to CONVERT a string(absolute path) to a 4-digit >> unique number with INT!!! That's all i want!! But i cannot make it work >> :( > > I just need a way to eat my soup with a screwdriver. No I WONT use a > spoon. > > Im starving > HELP Very well done :-) -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Mitya Sirenef <msirenef@lightbird.net> |
|---|---|
| Date | 2013-01-22 19:23 -0500 |
| Message-ID | <mailman.846.1358900656.2939.python-list@python.org> |
| In reply to | #37312 |
On 01/22/2013 12:33 PM, rusi wrote: > On Jan 22, 8:59 pm, Ferrous Cranus <nikos.gr...@gmail.com> wrote: >> I just need a way to CONVERT a string(absolute path) to a 4-digit unique number with INT!!! >> That's all i want!! But i cannot make it work :( > > I just need a way to eat my soup with a screwdriver. > No I WONT use a spoon. > > Im starving > HELP Well done, sir! :-) -- Lark's Tongue Guide to Python: http://lightbird.net/larks/ Life is not a spectacle or a feast; it is a predicament. George Santayana
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-01-22 06:55 -0800 |
| Message-ID | <mailman.798.1358868801.2939.python-list@python.org> |
| In reply to | #37275 |
Τη Τρίτη, 22 Ιανουαρίου 2013 4:33:03 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε:
> On Wed, Jan 23, 2013 at 12:57 AM, Ferrous Cranus <nikos.gr33k@gmail.com> wrote:
>
> > Τη Τρίτη, 22 Ιανουαρίου 2013 3:04:41 μ.μ. UTC+2, ο χρήστης Steven D'Aprano έγραψε:
>
> >
>
> >> What do you expect int("my-web-page.html") to return? Should it return 23
>
> >> or 794 or 109432985462940911485 or 42?
>
> >
>
> > I expected a unique number from the given string to be produced so i could have a (number <=> string) relation. What does int( somestring ) is returning really? i don;t have IDLE to test.
>
>
>
> Just run python without any args, and you'll get interactive mode. You
>
> can try things out there.
>
>
>
> > This counter.py will work on a shared hosting enviroment, so absolutes paths are BIG and expected like this:
>
> >
>
> > /home/nikos/public_html/varsa.gr/articles/html/files/index.html
>
>
>
> That's not big. Trust me, modern databases work just fine with unique
>
> indexes like that. The most common way to organize the index is with a
>
> binary tree, so the database has to look through log(N) entries.
>
> That's like figuring out if the two numbers 142857 and 857142 are the
>
> same; you don't need to look through 1,000,000 possibilities, you just
>
> need to look through the six digits each number has.
>
>
>
> > 'pin' has to be a number because if i used the column 'page' instead, just imagine the database's capacity withholding detailed information for each and every .html requested by visitors!!!
>
>
>
> Not that bad actually. I've happily used keys easily that long, and
>
> expected the database to ensure uniqueness without costing
>
> performance.
>
>
>
> > So i really - really need to associate a (4-digit integer <=> htmlpage's absolute path)
>
>
>
> Is there any chance that you'll have more than 10,000 pages? If so, a
>
> four-digit number is *guaranteed* to have duplicates. And if you
>
> research the Birthday Paradox, you'll find that any sort of hashing
>
> algorithm is likely to produce collisions a lot sooner than that.
>
>
>
> > Maybe it can be done by creating a MySQL association between the two columns, but i dont know how such a thing can be done(if it can).
>
> >
>
> > So, that why i need to get a "unique" number out of a string. please help.
>
>
>
> Ultimately, that unique number would end up being a foreign key into a
>
> table of URLs and IDs. So just skip that table and use the URLs
>
> directly - much easier. In this instance, there's no value in
>
> normalizing.
>
>
>
> ChrisA
I insist, perhaps compeleld, to use a key to associate a number to a filename.
Would you help please?
I dont know this is supposed to be written. i just know i need this:
number = function_that_returns_a_number_out_of_a_string( absolute_path_of_a_html_file)
Would someone help me write that in python coding? We are talkign 1 line of code here....
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2013-01-22 11:21 -0700 |
| Message-ID | <mailman.817.1358878899.2939.python-list@python.org> |
| In reply to | #37259 |
On 01/22/2013 03:07 AM, Ferrous Cranus wrote: > Now, can you pleas help me write the switch to filepath identifier? > I'am having trouble writing it. Unfortunately this isn't the way to go either. Apache uses its own config and rules to map a url to a "filepath." There's no way for Python to do this without interrogating Apache. And it's not necessary anyway. Urls to paths are mapped in a fairly static way by Apache. Just put your files in the right folders and generate the appropriate urls. It's not hard. You're struggling because you either don't understand how apache works, or you're trying to work against it. I've been deploying web sites for years and I've never had to do any of the things you are trying to make Python do.
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-01-22 17:27 -0800 |
| Message-ID | <7015fdf8-fcab-4d67-9cb8-52e29f788098@y3g2000pbq.googlegroups.com> |
| In reply to | #37259 |
On Jan 22, 8:07 pm, Ferrous Cranus <nikos.gr...@gmail.com> wrote: > Hello, i decided to switch from embedding string into .html to actually grab the filepath in order to identify it So all that crap you wrote in past threads about absolutely essentially needing to identify a html page _no matter where it was stored on the filesystem_ *was* just crap then? You're almost certainly trolling. On the minimal chance that you're not, you should _never_ be identifying a web page by its physical storage location, you should be identifying it by its _url_. But your "oh no, those two lines of code are two complex, I MUST DO IT WITH INT" shrillness has pretty much convinced me you're an idiot and/ or a troll. Look out, everyone, Br'er Ferrous is trying to get you all stuck in a tar thread again.
[toc] | [prev] | [standalone]
Page 5 of 5 — ← Prev page 1 2 3 4 [5]
Back to top | Article view | comp.lang.python
csiph-web